aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);