[Scummvm-git-logs] scummvm master -> 9a4bc7128e90ca1bde9e0e71fa9a635250403953

Strangerke Strangerke at scummvm.org
Mon Sep 19 00:41:42 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9a4bc7128e DM: Fix verbose warnings using GCC


Commit: 9a4bc7128e90ca1bde9e0e71fa9a635250403953
    https://github.com/scummvm/scummvm/commit/9a4bc7128e90ca1bde9e0e71fa9a635250403953
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-09-19T00:29:42+02:00

Commit Message:
DM: Fix verbose warnings using GCC

Changed paths:
    engines/dm/group.cpp



diff --git a/engines/dm/group.cpp b/engines/dm/group.cpp
index 28253e8..c464e38 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);





More information about the Scummvm-git-logs mailing list