aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-03-05 11:39:27 +0000
committerMax Horn2003-03-05 11:39:27 +0000
commit45f69768055865c33302e4941384626c79219e67 (patch)
tree7b51bd64587649368374c0b90ed296669e114cd0
parent91786c253dad1001dbc4cb1acb59d82744dfd1e0 (diff)
downloadscummvm-rg350-45f69768055865c33302e4941384626c79219e67.tar.gz
scummvm-rg350-45f69768055865c33302e4941384626c79219e67.tar.bz2
scummvm-rg350-45f69768055865c33302e4941384626c79219e67.zip
Patch #697848: Small removeObjectFromRoom() cleanup
svn-id: r6689
-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