mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-23 06:00:19 +02:00
Fixed commands not being executed properly on a specific type of array of listeners
This commit is contained in:
1 file changed
+1
-1
@@ -682,7 +682,7 @@ void ScriptVM::execCmdMethodCommon(op_parmNum_t param)
|
||||
array.CastConstArrayValue();
|
||||
|
||||
for (uintptr_t i = array.arraysize(); i > 0; i--) {
|
||||
Listener *const listener = array[i]->listenerAt(i);
|
||||
Listener *const listener = array.listenerAt(i);
|
||||
if (listener) {
|
||||
executeCommand<true>(listener, param, eventNum);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user