mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
fix this pointer in op_callfunc_this
This commit is contained in:
parent
12134ceb2b
commit
c75eecbf53
|
|
@ -2511,7 +2511,7 @@ OPCodeReturn CodeInterpreter::op_callfunc_this(U32 &ip)
|
|||
ip += 2;
|
||||
CSTK.getArgcArgv(fnName, &mCallArgc, &mCallArgv);
|
||||
|
||||
Namespace *ns = mThisObject->getNamespace();
|
||||
Namespace *ns = mThisObject ? mThisObject->getNamespace() : NULL;
|
||||
if (ns)
|
||||
mNSEntry = ns->lookup(fnName);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue