aboutsummaryrefslogtreecommitdiff
path: root/engines/dm
diff options
context:
space:
mode:
authorStrangerke2016-09-19 00:29:42 +0200
committerStrangerke2016-09-19 00:29:42 +0200
commit9a4bc7128e90ca1bde9e0e71fa9a635250403953 (patch)
tree2d202cfe27377186ef308ed08ebd9c5443e331ea /engines/dm
parent4a8c8a53bd5095723883ff52e3b3cf4fb231558c (diff)
downloadscummvm-rg350-9a4bc7128e90ca1bde9e0e71fa9a635250403953.tar.gz
scummvm-rg350-9a4bc7128e90ca1bde9e0e71fa9a635250403953.tar.bz2
scummvm-rg350-9a4bc7128e90ca1bde9e0e71fa9a635250403953.zip
DM: Fix verbose warnings using GCC
Diffstat (limited to 'engines/dm')
-rw-r--r--engines/dm/group.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/dm/group.cpp b/engines/dm/group.cpp
index 28253e8f1f..c464e3866b 100644
--- a/engines/dm/group.cpp
+++ b/engines/dm/group.cpp
@@ -1471,6 +1471,9 @@ bool GroupMan::isCreatureAttacking(Group *group, int16 mapX, int16 mapY, uint16
case kDMCreatureTypeDemon:
case kDMCreatureTypeRedDragon:
projectileThing = Thing::_explFireBall;
+ break;
+ default:
+ break;
} /* BUG0_13 The game may crash when 'Lord Order' or 'Grey Lord' cast spells. This cannot happen with the original dungeons as they do not contain any groups of these types. 'Lord Order' and 'Grey Lord' creatures can cast spells (attack range > 1) but no projectile type is defined for them in the code. If these creatures are present in a dungeon they will cast projectiles containing undefined things because the variable is not initialized */
int16 kineticEnergy = (creatureInfo->_attack >> 2) + 1;
kineticEnergy += _vm->getRandomNumber(kineticEnergy);