Set base class only when $base called.
The build has failed. Details

This commit is contained in:
Rafal Kupiec 2019-05-28 11:51:13 +02:00
parent 5cc4a5e48d
commit 5c176207e1
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 1 deletions

View File

@ -4159,7 +4159,9 @@ static sxi32 VmByteCodeExec(
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR,
"Attempt to call parent class from non-inheritance instance of class '%z'", &pClass->sName);
}
pClass = pClass->pBase;
if(pNos->iFlags == MEMOBJ_BASE) {
pClass = pClass->pBase;
}
}
/* Extract attribute name first */
SyStringInitFromBuf(&sName, (const char *)SyBlobData(&pTos->sBlob), SyBlobLength(&pTos->sBlob));