diff options
author | Strangerke | 2016-09-18 01:02:02 +0200 |
---|---|---|
committer | Strangerke | 2016-09-18 01:02:51 +0200 |
commit | ea8f3dfb19b2b269cf6aa407962ec209a88fa91e (patch) | |
tree | 101c5642b7065941ad5310d7c06a180d1ac3256c /engines/dm/projexpl.cpp | |
parent | ffe2c802c471826913e79333a979d41c94a9cc67 (diff) | |
download | scummvm-rg350-ea8f3dfb19b2b269cf6aa407962ec209a88fa91e.tar.gz scummvm-rg350-ea8f3dfb19b2b269cf6aa407962ec209a88fa91e.tar.bz2 scummvm-rg350-ea8f3dfb19b2b269cf6aa407962ec209a88fa91e.zip |
DL: Enforce the use of CreatureType
Diffstat (limited to 'engines/dm/projexpl.cpp')
-rw-r--r-- | engines/dm/projexpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dm/projexpl.cpp b/engines/dm/projexpl.cpp index 74b26e7e6a..d19247b4e7 100644 --- a/engines/dm/projexpl.cpp +++ b/engines/dm/projexpl.cpp @@ -163,7 +163,7 @@ bool ProjExpl::hasProjectileImpactOccurred(int16 impactType, int16 mapXCombo, in return false; curCreatureIndex--; - uint16 curCreatureType = curGroup->_type; + CreatureType curCreatureType = curGroup->_type; CreatureInfo *curCreatureInfo = &_vm->_dungeonMan->_creatureInfos[curCreatureType]; if ((projectileAssociatedThing == Thing::_explFireBall) && (curCreatureType == kDMCreatureTypeBlackFlame)) { uint16 *curCreatureHealth = &curGroup->_health[curCreatureIndex]; @@ -480,7 +480,7 @@ void ProjExpl::processEvent25(TimelineEvent *event) { Group *group = nullptr; CreatureInfo *creatureInfo = nullptr; - uint16 creatureType = 0; + CreatureType creatureType; if (groupThing != Thing::_endOfList) { group = (Group *)_vm->_dungeonMan->getThingData(groupThing); creatureType = group->_type; |