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
Günther Brammer 2012-04-28 20:25:04 +02:00
parent 1995b59adc
commit 2e9ae057ad
1 changed files with 0 additions and 1 deletions

View File

@ -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;