mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-21 14:00:28 +02:00
Clear the variable if the field cannot be found
This commit is contained in:
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user