aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index d988b3209b..791a45e2c1 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -778,7 +778,7 @@ void Scumm::removeObjectFromRoom(int obj)
for (i = 1; i < _numLocalObjects; i++) {
if (_objs[i].obj_nr == (uint16)obj) {
if (_objs[i].width != 0) {
- for (j = 0; j < _objs[i].width; j++) {
+ for (j = 0; j < _objs[i].width >> 3; j++) {
strip = (_objs[i].x_pos >> 3) + j;
// Clip value