mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
ASYLUM: make 'kill_script' use correct queue slot
This commit is contained in:
parent
9473dfef9f
commit
1068a9ee03
@ -651,9 +651,11 @@ bool Console::cmdKillScript(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
int32 index = atoi(argv[1]);
|
||||
|
||||
if (getScript()->isInQueue(index))
|
||||
getScript()->removeFromQueue(index);
|
||||
for (uint32 i = 0; i < ARRAYSIZE(getScript()->_queue.entries); i++)
|
||||
if (getScript()->_queue.entries[i].scriptIndex == index) {
|
||||
getScript()->removeFromQueue(i);
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user