forked from Mirrors/openclonk
Remove obsolete assertion from FnTranslate (#746)
The rules for ctx->Obj and ctx->Def changed recently. The latter is now the real this pointer, and Obj is Def->GetObject(). There's no need to check this in FnTranslate.rope
parent
1995b59adc
commit
2e9ae057ad
|
@ -536,7 +536,6 @@ static bool FnStopScriptProfiler(C4AulContext *ctx)
|
|||
|
||||
static C4String *FnTranslate(C4AulContext *ctx, C4String *text)
|
||||
{
|
||||
assert(!ctx->Obj || ctx->Def == ctx->Obj->Def);
|
||||
if (!text || text->GetData().isNull()) return NULL;
|
||||
// Find correct script: translations of the context if possible, containing script as fallback
|
||||
C4AulScript *script = NULL;
|
||||
|
|
Loading…
Reference in New Issue