fix crash for Translate on strings without translation

Thanks to Isilkor
shapetextures
Maikel de Vries 2015-09-12 00:11:24 +02:00
parent ad95a39a1c
commit a7480ba0ef
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ C4String *C4AulExec::FnTranslate(C4PropList * _this, C4String *text)
if (_this && _this->GetDef())
script = &(_this->GetDef()->Script);
else
script = AulExec.pCurCtx[-1].Func->pOrgScript;
script = AulExec.pCurCtx[0].Func->pOrgScript;
if (!script) return NULL;
try
{