diff --git a/engine/vm.c b/engine/vm.c index 8b654fc..ad27a48 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -4159,7 +4159,7 @@ static sxi32 VmByteCodeExec( PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Attempt to call parent class from non-inheritance instance of class '%z'", &pClass->sName); } - if(pNos->iFlags == MEMOBJ_BASE) { + if(pNos->iFlags == MEMOBJ_BASEOBJ) { pClass = pClass->pBase; } }