Browse Source

The easiest solutions are the best. Just look for attributes in object.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
519f5050b7
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      engine/vm.c

+ 2
- 8
engine/vm.c View File

@ -4212,14 +4212,8 @@ static sxi32 VmByteCodeExec(
if(SyStrncmp(pObjAttr->pAttr->sName.zString, sName.zString, sName.nByte) == 0) {
if(pNos->iFlags != MEMOBJ_PARENTOBJ && pObjAttr->pAttr->pClass == pClass) {
break;
} else {
SyHashEntry *pDerived = SyHashGet(&pClass->hDerived, (const void *)pObjAttr->pAttr->pClass->sName.zString, pObjAttr->pAttr->pClass->sName.nByte);
if(pDerived != 0) {
ph7_class *pSub = (ph7_class *)pDerived->pUserData;
if(pObjAttr->pAttr->pClass == pSub) {
break;
}
}
} else if(pObjAttr->pAttr->pClass != pClass) {
break;
}
}
pObjAttr = 0;

Loading…
Cancel
Save