From 61440ca8304efc2e375cc46bdc06f9028d785ce7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 28 Nov 2004 22:26:03 +0000 Subject: Fix range check svn-id: r15949 --- scumm/akos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 0f38148997..1aadc1fdec 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -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; -- cgit v1.2.3