diff --git a/engine/vm.c b/engine/vm.c index e3089dc..ae7da96 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -4610,7 +4610,7 @@ static sxi32 VmByteCodeExec( if((pVmFunc->iFlags & VM_FUNC_CLASS_METHOD) && pThis) { /* Install the '$this' variable */ static const SyString sThis = { "this", sizeof("this") - 1 }; - pObj = VmExtractMemObj(&(*pVm), &sThis, FALSE, TRUE); + pObj = VmCreateMemObj(&(*pVm), &sThis, FALSE); if(pObj) { /* Reflect the change */ pObj->x.pOther = pThis;