mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
fix this pointer in op_callfunc_this
This commit is contained in:
parent
12134ceb2b
commit
c75eecbf53
1 changed files with 1 additions and 1 deletions
|
|
@ -2511,7 +2511,7 @@ OPCodeReturn CodeInterpreter::op_callfunc_this(U32 &ip)
|
||||||
ip += 2;
|
ip += 2;
|
||||||
CSTK.getArgcArgv(fnName, &mCallArgc, &mCallArgv);
|
CSTK.getArgcArgv(fnName, &mCallArgc, &mCallArgv);
|
||||||
|
|
||||||
Namespace *ns = mThisObject->getNamespace();
|
Namespace *ns = mThisObject ? mThisObject->getNamespace() : NULL;
|
||||||
if (ns)
|
if (ns)
|
||||||
mNSEntry = ns->lookup(fnName);
|
mNSEntry = ns->lookup(fnName);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue