diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/map.cpp | 2 |
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); } |