mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-20 09:00:23 +02:00
Clear the top variable when the event is not valid too
This commit is contained in:
1 file changed
+2
-2
@@ -541,8 +541,8 @@ void ScriptVM::executeCommandInternal<false>(
|
||||
)
|
||||
{
|
||||
transferVarsToEvent(ev, fromVar, iParamCount);
|
||||
checkValidEvent(ev, listener);
|
||||
|
||||
checkValidEvent(ev, listener);
|
||||
listener->ProcessScriptEvent(ev);
|
||||
}
|
||||
|
||||
@@ -552,9 +552,9 @@ void ScriptVM::executeCommandInternal<true>(
|
||||
)
|
||||
{
|
||||
transferVarsToEvent(ev, fromVar, iParamCount);
|
||||
checkValidEvent(ev, listener);
|
||||
|
||||
try {
|
||||
checkValidEvent(ev, listener);
|
||||
listener->ProcessScriptEvent(ev);
|
||||
} catch (...) {
|
||||
m_VMStack.GetTop().Clear();
|
||||
|
||||
Reference in new issue
Block a user