mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
DREAMWEB: Fix regression in deleteExObject
(thanks to Fingolfin)
This commit is contained in:
parent
8a22c2d65e
commit
341a2d6874
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user