diff options
author | Willem Jan Palenstijn | 2011-12-20 13:58:26 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-12-20 14:07:01 +0100 |
commit | 341a2d68742d4c7dce9229c1da4c8e6b13e2087c (patch) | |
tree | f637f5d73940274cca8979666452d0891147ac09 /engines/dreamweb/object.cpp | |
parent | 8a22c2d65e198e01b91360fe9e2d979c7d5b3c64 (diff) | |
download | scummvm-rg350-341a2d68742d4c7dce9229c1da4c8e6b13e2087c.tar.gz scummvm-rg350-341a2d68742d4c7dce9229c1da4c8e6b13e2087c.tar.bz2 scummvm-rg350-341a2d68742d4c7dce9229c1da4c8e6b13e2087c.zip |
DREAMWEB: Fix regression in deleteExObject
(thanks to Fingolfin)
Diffstat (limited to 'engines/dreamweb/object.cpp')
-rw-r--r-- | engines/dreamweb/object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp index 70481407f2..54979309f4 100644 --- a/engines/dreamweb/object.cpp +++ b/engines/dreamweb/object.cpp @@ -535,7 +535,7 @@ void DreamBase::deleteExObject(uint8 index) { deleteExText(index); for (uint8 i = 0; i < kNumexobjects; ++i) { - DynObject *t = getExAd(index); + DynObject *t = getExAd(i); // Is this object contained in the one we've just deleted? if (t->mapad[0] == 4 && t->mapad[1] == index) deleteExObject(i); @@ -544,7 +544,7 @@ void DreamBase::deleteExObject(uint8 index) { void DreamBase::removeObFromInv() { if (data.byte(kCommand) == 100) - return; // object doesn't exit + return; // object doesn't exist assert(data.byte(kObjecttype) == kExObjectType); |