aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-01-24 21:31:10 -0500
committerPaul Gilbert2018-01-24 21:31:10 -0500
commit35833695c0c9dd0b41e8d60efd26d5a49f754ad5 (patch)
tree3358423a032a1bf8a5d358d797cc226cd9cbfbff /engines/xeen
parente214493f877babbe75278d1d665fa24f6e46e957 (diff)
downloadscummvm-rg350-35833695c0c9dd0b41e8d60efd26d5a49f754ad5.tar.gz
scummvm-rg350-35833695c0c9dd0b41e8d60efd26d5a49f754ad5.tar.bz2
scummvm-rg350-35833695c0c9dd0b41e8d60efd26d5a49f754ad5.zip
XEEN: Fix hooking up monster data during map loading
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp
index ec58a0f14d..f5c66eddbb 100644
--- a/engines/xeen/map.cpp
+++ b/engines/xeen/map.cpp
@@ -817,13 +817,13 @@ void MonsterObjectData::synchronize(XeenSerializer &s, MonsterData &monsterData)
MazeMonster mon;
mon._position = mobStruct._pos;
mon._id = mobStruct._id;
- mon._monsterData = &monsterData[mon._spriteId];
mon._frame = _vm->getRandomNumber(7);
if (mon._id < (int)_monsterSprites.size()) {
mon._spriteId = _monsterSprites[mon._id]._spriteId;
mon._sprites = &_monsterSprites[mon._id]._sprites;
mon._attackSprites = &_monsterSprites[mon._id]._attackSprites;
+ mon._monsterData = &monsterData[mon._spriteId];
} else {
assert(!mon._id);
}