aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorD G Turner2018-09-24 19:09:14 +0100
committerD G Turner2018-09-24 19:09:14 +0100
commitb3b4b9c8de8bb88b2302835ed081a22a16efe35c (patch)
tree3a997605c2e207f8eb96755d39153fd3c2caaa0d /engines/lastexpress
parentf1ded1f111e1a194cd14d47db99fec363a8a0478 (diff)
downloadscummvm-rg350-b3b4b9c8de8bb88b2302835ed081a22a16efe35c.tar.gz
scummvm-rg350-b3b4b9c8de8bb88b2302835ed081a22a16efe35c.tar.bz2
scummvm-rg350-b3b4b9c8de8bb88b2302835ed081a22a16efe35c.zip
LASTEXPRESS: Fix GCC Enum Comparison Mismatch Warning.
This was previously comparing the Object Model to the Object Enum. This has been corrected, but should have no functional change as the underlying enum value of 1 is identical for both symbols.
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/entities/vassili.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/entities/vassili.cpp b/engines/lastexpress/entities/vassili.cpp
index cff6ec472c..11a84f517b 100644
--- a/engines/lastexpress/entities/vassili.cpp
+++ b/engines/lastexpress/entities/vassili.cpp
@@ -108,7 +108,7 @@ IMPLEMENT_FUNCTION(5, Vassili, chapter1Handler)
if (!Entity::updateParameterCheck(params->param3, getState()->time, 450))
break;
- if (!params->param2 && getObjects()->get(kObjectCompartmentA).model == kObjectLocation1) {
+ if (!params->param2 && getObjects()->get(kObjectCompartmentA).model == kObjectModel1) {
params->param2 = 1;
getEntities()->drawSequenceLeft(kEntityVassili, "303A");
getObjects()->update(kObjectCompartmentA, kEntityPlayer, kObjectLocationNone, kCursorHandKnock, kCursorHand);