mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Clear the top value of a return command, if the listener is NULL
This commit is contained in:
parent
7bc8c3ab5b
commit
a99a4a3a2b
1 changed files with 1 additions and 0 deletions
|
@ -652,6 +652,7 @@ void ScriptVM::execMethodCommon(op_parmNum_t param)
|
|||
|
||||
Listener *const listener = a.listenerValue();
|
||||
if (!listener) {
|
||||
m_VMStack.GetTop().Clear();
|
||||
throw ScriptException("command '%s' applied to NULL listener", Event::GetEventName(eventNum).c_str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue