aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/map.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-03 21:13:44 -0400
committerPaul Gilbert2018-04-03 21:13:44 -0400
commite5c4adb3c0ecdc74df2f5edc69f19af265f93be2 (patch)
tree3cdf133d27735aabb8e52cb45096ac047c3e4a3c /engines/xeen/map.cpp
parent0f82830778c0d45b851b260f3acfcd8f87b5cb3f (diff)
downloadscummvm-rg350-e5c4adb3c0ecdc74df2f5edc69f19af265f93be2.tar.gz
scummvm-rg350-e5c4adb3c0ecdc74df2f5edc69f19af265f93be2.tar.bz2
scummvm-rg350-e5c4adb3c0ecdc74df2f5edc69f19af265f93be2.zip
XEEN: Fixes for fighting in the Warzone
Diffstat (limited to 'engines/xeen/map.cpp')
-rw-r--r--engines/xeen/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp
index b0c269cdab..5420f74941 100644
--- a/engines/xeen/map.cpp
+++ b/engines/xeen/map.cpp
@@ -525,7 +525,8 @@ void MonsterObjectData::clearMonsterSprites() {
void MonsterObjectData::addMonsterSprites(MazeMonster &monster) {
Map &map = *g_vm->_map;
- int imgNumber = map._monsterData[monster._spriteId]._imageNumber;
+ monster._monsterData = &map._monsterData[monster._spriteId];
+ int imgNumber = monster._monsterData->_imageNumber;
uint idx;
// Find the sprites for the monster, loading them in if necessary