forked from Mirrors/openclonk
fix crash for Translate on strings without translation
Thanks to Isilkorshapetextures
parent
ad95a39a1c
commit
a7480ba0ef
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue