aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-09-19 00:55:11 +0200
committerStrangerke2016-09-19 00:55:11 +0200
commit197e85176e00b59444d0a19297e301048cd8fd93 (patch)
tree75918d53f0485b904a8d71044a30c8cd127cf94b
parent9a4bc7128e90ca1bde9e0e71fa9a635250403953 (diff)
downloadscummvm-rg350-197e85176e00b59444d0a19297e301048cd8fd93.tar.gz
scummvm-rg350-197e85176e00b59444d0a19297e301048cd8fd93.tar.bz2
scummvm-rg350-197e85176e00b59444d0a19297e301048cd8fd93.zip
DM: Remove a couple of useless checks
-rw-r--r--engines/dm/group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dm/group.cpp b/engines/dm/group.cpp
index c464e3866b..c1598c43d6 100644
--- a/engines/dm/group.cpp
+++ b/engines/dm/group.cpp
@@ -1954,7 +1954,7 @@ bool GroupMan::isFluxcageOnSquare(int16 mapX, int16 mapY) {
}
void GroupMan::fuseAction(uint16 mapX, uint16 mapY) {
- if ((mapX < 0) || (mapX >= _vm->_dungeonMan->_currMapWidth) || (mapY < 0) || (mapY >= _vm->_dungeonMan->_currMapHeight))
+ if ((mapX >= _vm->_dungeonMan->_currMapWidth) || (mapY >= _vm->_dungeonMan->_currMapHeight))
return;
_vm->_projexpl->createExplosion(Thing::_explHarmNonMaterial, 255, mapX, mapY, kDMCreatureTypeSingleCenteredCreature); /* BUG0_17 The game crashes after the Fuse action is performed while looking at a wall on a map boundary. An explosion thing is created on the square in front of the party but there is no check to ensure the square coordinates are in the map bounds. This corrupts a memory location and leads to a game crash */