diff options
author | Paul Gilbert | 2019-08-29 19:22:44 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-29 19:22:51 -0700 |
commit | a945de7cf4a16e6b019a95c11f7aa3247da4dd59 (patch) | |
tree | cb3853a77d229c5699e471f8fc116014c6b4e596 /engines/xeen | |
parent | 8d62dc92a9324df9b510488647820d2c53e17157 (diff) | |
download | scummvm-rg350-a945de7cf4a16e6b019a95c11f7aa3247da4dd59.tar.gz scummvm-rg350-a945de7cf4a16e6b019a95c11f7aa3247da4dd59.tar.bz2 scummvm-rg350-a945de7cf4a16e6b019a95c11f7aa3247da4dd59.zip |
XEEN: Fix crash entering Volcano Cave level 2
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/interface_scene.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/xeen/interface_scene.cpp b/engines/xeen/interface_scene.cpp index 0fdf867448..01f03feed8 100644 --- a/engines/xeen/interface_scene.cpp +++ b/engines/xeen/interface_scene.cpp @@ -420,6 +420,9 @@ void InterfaceScene::drawScene() { // limits as specified by the map's _animationInfo listing for (uint idx = 0; idx < map._mobData._objects.size(); ++idx) { MazeObject &mazeObject = map._mobData._objects[idx]; + if (mazeObject._spriteId == -1) + continue; + AnimationEntry &animEntry = map._animationInfo[mazeObject._spriteId]; int directionIndex = Res.DIRECTION_ANIM_POSITIONS[mazeObject._direction][partyDirection]; |