Clear the variable if the field cannot be found

This commit is contained in:
smallmodel committed 2024-03-03 18:54:22 +01:00
1 parent 4cf4ca2943
commit 302f06f8d2
1 file changed
+2
+2
View File
@@ -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;
}