Browse Source

Reverse the logic. It does not seem to work actually.

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

+ 1
- 1
engine/vm.c View File

@ -6224,7 +6224,7 @@ static int VmClassMemberAccess(
/* Protected */
ph7_class *pBase = (ph7_class *)pVmFunc->pUserData;
/* Must be a derived class */
if(!VmInstanceOf(pClass, pBase)) {
if(!VmInstanceOf(pBase, pClass)) {
goto dis; /* Access is forbidden */
}
}

Loading…
Cancel
Save