Fixed commands not being executed properly on a specific type of array of listeners

This commit is contained in:
smallmodel 2024-02-03 23:22:06 +01:00
parent 56044dd8f8
commit 0ed92943de
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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);
}