aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-02-19 02:18:05 +0000
committerTravis Howell2004-02-19 02:18:05 +0000
commite5c3d7329b2ce8a54d2476bb93e8272285801499 (patch)
tree4b9521c0dafa231b783d29b46e4c9d069fad120d /scumm
parent929fd0591f411008d33c6709de2effbff995e683 (diff)
downloadscummvm-rg350-e5c3d7329b2ce8a54d2476bb93e8272285801499.tar.gz
scummvm-rg350-e5c3d7329b2ce8a54d2476bb93e8272285801499.tar.bz2
scummvm-rg350-e5c3d7329b2ce8a54d2476bb93e8272285801499.zip
An equal value should be allowed, originals used changeRange at this point.
svn-id: r12932
Diffstat (limited to 'scumm')
-rw-r--r--scumm/akos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index 5d8b7bcb6f..905b059c1c 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -1263,7 +1263,7 @@ bool ScummEngine::akos_increaseAnim(Actor *a, int chan, const byte *aksq, const
if (akfo == NULL)
error("akos_increaseAnim: no AKFO table");
tmp = a->getAnimVar(GB(2)) - 1;
- if (tmp < 0 || tmp >= numakfo - 1)
+ if (tmp < 0 || tmp > numakfo - 1)
error("akos_increaseAnim: invalid jump value %d", tmp);
curpos = READ_LE_UINT16(&akfo[tmp]);
break;