mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Clear the variable if the field cannot be found
This commit is contained in:
parent
4cf4ca2943
commit
302f06f8d2
1 changed files with 2 additions and 0 deletions
|
@ -1590,6 +1590,7 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
|
|||
}
|
||||
} catch (...) {
|
||||
skipField();
|
||||
m_VMStack.GetTop().Clear();
|
||||
throw;
|
||||
}
|
||||
|
||||
|
@ -1616,6 +1617,7 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
|
|||
}
|
||||
} catch (...) {
|
||||
skipField();
|
||||
m_VMStack.GetTop().Clear();
|
||||
throw;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue