mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-18 08:00:22 +02:00
Clear the top value of a return command, if the listener is NULL
This commit is contained in:
1 file changed
+1
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user