From 703fd8aca2e15edc03aa854365e20bfdcf524add Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 27 Jun 2016 23:07:18 +0200 Subject: DM: Fix bug in getIconIndex --- engines/dm/objectman.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/dm/objectman.cpp b/engines/dm/objectman.cpp index d20c235aa0..c92427bf4b 100644 --- a/engines/dm/objectman.cpp +++ b/engines/dm/objectman.cpp @@ -108,9 +108,9 @@ IconIndice ObjectMan::getIconIndex(Thing thing) { IconIndice iconIndex = getObjectType(thing); if ((iconIndex != kIconIndiceNone) && - ((iconIndex < kIconIndiceWeaponDagger) && (iconIndex >= kIconIndiceJunkCompassNorth)) || // < instead of <= is no error - ((iconIndex >= kIconIndicePotionMaPotionMonPotion) && (iconIndex <= kIconIndicePotionWaterFlask)) || - (iconIndex == kIconIndicePotionEmptyFlask) + (((iconIndex < kIconIndiceWeaponDagger) && (iconIndex >= kIconIndiceJunkCompassNorth)) || // < instead of <= is no error + ((iconIndex >= kIconIndicePotionMaPotionMonPotion) && (iconIndex <= kIconIndicePotionWaterFlask)) || + (iconIndex == kIconIndicePotionEmptyFlask)) ) { uint16 *rawType = _vm->_dungeonMan->getThingData(thing); switch (iconIndex) { -- cgit v1.2.3