Clear the variable if the field cannot be found

This commit is contained in:
smallmodel 2024-03-03 18:54:22 +01:00
parent 4cf4ca2943
commit 302f06f8d2
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -1590,6 +1590,7 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
} }
} catch (...) { } catch (...) {
skipField(); skipField();
m_VMStack.GetTop().Clear();
throw; throw;
} }
@ -1616,6 +1617,7 @@ void ScriptVM::Execute(ScriptVariable *data, int dataSize, str label)
} }
} catch (...) { } catch (...) {
skipField(); skipField();
m_VMStack.GetTop().Clear();
throw; throw;
} }