diff options
author | Littleboy | 2013-11-28 01:15:16 -0500 |
---|---|---|
committer | Littleboy | 2013-12-10 01:54:59 -0500 |
commit | ddcef239432c42b99badab232878e404fa892e01 (patch) | |
tree | 79ccc3012fcb477191475bbad771e7a6b4706989 /engines/lastexpress/entities/milos.cpp | |
parent | e36786eb1bacc55f0b5ba29ac3278cd3b27a0e59 (diff) | |
download | scummvm-rg350-ddcef239432c42b99badab232878e404fa892e01.tar.gz scummvm-rg350-ddcef239432c42b99badab232878e404fa892e01.tar.bz2 scummvm-rg350-ddcef239432c42b99badab232878e404fa892e01.zip |
LASTEXPRESS: Fix enum comparison
Diffstat (limited to 'engines/lastexpress/entities/milos.cpp')
-rw-r--r-- | engines/lastexpress/entities/milos.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lastexpress/entities/milos.cpp b/engines/lastexpress/entities/milos.cpp index ca67fc4f49..76dc0aa0a0 100644 --- a/engines/lastexpress/entities/milos.cpp +++ b/engines/lastexpress/entities/milos.cpp @@ -478,7 +478,7 @@ IMPLEMENT_FUNCTION(14, Milos, function14) } } else { if (getProgress().eventCorpseMovedFromFloor && getProgress().jacket != kJacketBlood) { - params->param6 = (getObjects()->get(kObjectCompartment1).model == kObjectLocation1) ? kEventMilosTylerCompartmentBedVisit : kEventMilosTylerCompartmentVisit; + params->param6 = (getObjects()->get(kObjectCompartment1).model == kObjectModel1) ? kEventMilosTylerCompartmentBedVisit : kEventMilosTylerCompartmentVisit; setCallback(3); setup_savegame(kSavegameTypeEvent, kEventMilosTylerCompartmentVisit); @@ -549,9 +549,9 @@ label_callback_12: if (getProgress().eventCorpseMovedFromFloor && getProgress().jacket != kJacketBlood) { if (params->param2) { getEntityData(kEntityPlayer)->location = kLocationInsideCompartment; - params->param6 = (getObjects()->get(kObjectCompartment1).model == kObjectLocation1) ? kEventMilosTylerCompartmentBed : kEventMilosTylerCompartment; + params->param6 = (getObjects()->get(kObjectCompartment1).model == kObjectModel1) ? kEventMilosTylerCompartmentBed : kEventMilosTylerCompartment; } else { - params->param6 = (getObjects()->get(kObjectCompartment1).model == kObjectLocation1) ? kEventMilosTylerCompartmentBedVisit : kEventMilosTylerCompartmentVisit; + params->param6 = (getObjects()->get(kObjectCompartment1).model == kObjectModel1) ? kEventMilosTylerCompartmentBedVisit : kEventMilosTylerCompartmentVisit; } setCallback(17); |