aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJonathan Gray2003-05-01 13:45:45 +0000
committerJonathan Gray2003-05-01 13:45:45 +0000
commitfb36c0ad302c4f023b20576ec0882d57a7803532 (patch)
tree8d915fba9bb88e8a8d3fc669425b3dab688f643f /scumm
parentd0fd19bd48070bf6a2976cad82af1f89e4c2d201 (diff)
downloadscummvm-rg350-fb36c0ad302c4f023b20576ec0882d57a7803532.tar.gz
scummvm-rg350-fb36c0ad302c4f023b20576ec0882d57a7803532.tar.bz2
scummvm-rg350-fb36c0ad302c4f023b20576ec0882d57a7803532.zip
off by one error
svn-id: r7248
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 0946a18c41..b489857b6e 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -803,7 +803,7 @@ void Scumm_v5::o5_drawObject() {
w = od->width;
h = od->height;
- i = _numLocalObjects;
+ i = _numLocalObjects - 1;
do {
if (_objs[i].obj_nr && _objs[i].x_pos == x && _objs[i].y_pos == y && _objs[i].width == w && _objs[i].height == h)
putState(_objs[i].obj_nr, 0);