diff options
author | Paul Gilbert | 2018-04-02 22:44:52 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-02 22:44:52 -0400 |
commit | 847163aa5d1b570d4c549bd8efcf95cd7786e8c0 (patch) | |
tree | c4f82da188526029ff020fbde68d244c655458d8 | |
parent | a467e669b2d775388fd10d7ee420b977e23c72a5 (diff) | |
download | scummvm-rg350-847163aa5d1b570d4c549bd8efcf95cd7786e8c0.tar.gz scummvm-rg350-847163aa5d1b570d4c549bd8efcf95cd7786e8c0.tar.bz2 scummvm-rg350-847163aa5d1b570d4c549bd8efcf95cd7786e8c0.zip |
XEEN: Fix crash entering Newcastle
-rw-r--r-- | engines/xeen/scripts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 7f78f5bf2c..6230d1cc8d 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -496,7 +496,7 @@ bool Scripts::cmdTeleport(ParamsIterator ¶ms) { party._stepped = true; if (mapId != party._mazeId) { - int spriteId = (intf._objNumber == -1) ? -1 : map._mobData._objects[intf._objNumber - 1]._spriteId; + int spriteId = (intf._objNumber == -1) ? -1 : map._mobData._objects[intf._objNumber]._spriteId; switch (spriteId) { case 47: |