mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Clear the top variable when the event is not valid too
This commit is contained in:
parent
7f0c506fea
commit
87e5b6d41e
1 changed files with 2 additions and 2 deletions
|
@ -541,8 +541,8 @@ void ScriptVM::executeCommandInternal<false>(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
transferVarsToEvent(ev, fromVar, iParamCount);
|
transferVarsToEvent(ev, fromVar, iParamCount);
|
||||||
checkValidEvent(ev, listener);
|
|
||||||
|
|
||||||
|
checkValidEvent(ev, listener);
|
||||||
listener->ProcessScriptEvent(ev);
|
listener->ProcessScriptEvent(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -552,9 +552,9 @@ void ScriptVM::executeCommandInternal<true>(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
transferVarsToEvent(ev, fromVar, iParamCount);
|
transferVarsToEvent(ev, fromVar, iParamCount);
|
||||||
checkValidEvent(ev, listener);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
checkValidEvent(ev, listener);
|
||||||
listener->ProcessScriptEvent(ev);
|
listener->ProcessScriptEvent(ev);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
m_VMStack.GetTop().Clear();
|
m_VMStack.GetTop().Clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue