mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed OPCODE_STORE_FIELD_REF incorrectly not skipping field on exception
It would cause invalid opcode afterwards.
This commit is contained in:
parent
eeb697570d
commit
befcedcf58
1 changed files with 1 additions and 1 deletions
|
@ -1512,7 +1512,6 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
|
|||
|
||||
if (listener == nullptr) {
|
||||
fieldNameIndex = fetchActualOpcodeValue<op_name_t>();
|
||||
skipField();
|
||||
ScriptError(
|
||||
"Field '%s' applied to NULL listener", Director.GetString(fieldNameIndex).c_str()
|
||||
);
|
||||
|
@ -1527,6 +1526,7 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
|
|||
} catch (...) {
|
||||
ScriptVariable *const pTop = m_VMStack.GetTopPtr();
|
||||
pTop->setRefValue(pTop);
|
||||
skipField();
|
||||
throw;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue