mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 13:42:37 +00:00
Fix range check
svn-id: r15949
This commit is contained in:
parent
1f56326bd5
commit
61440ca830
@ -1618,9 +1618,9 @@ bool ScummEngine::akos_increaseAnim(Actor *a, int chan, const byte *aksq, const
|
||||
}
|
||||
|
||||
void ScummEngine::akos_queCommand(byte cmd, Actor *a, int param_1, int param_2) {
|
||||
checkRange(32, 0, _akosQueuePos, "akos_queCommand overflow");
|
||||
|
||||
_akosQueuePos++;
|
||||
checkRange(31, 0, _akosQueuePos, "akos_queCommand overflow");
|
||||
|
||||
_akosQueue[_akosQueuePos].cmd = cmd;
|
||||
_akosQueue[_akosQueuePos].actor = a->number;
|
||||
_akosQueue[_akosQueuePos].param1 = param_1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user