diff options
author | Paul Gilbert | 2015-02-28 14:59:43 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-28 14:59:43 -0500 |
commit | 99aa64bda4695ca704a2902d3c6b6bd705204043 (patch) | |
tree | 895d75726cc22e2046b59db92f302ffb04fc9215 /engines/xeen | |
parent | b378709478fc689de8a1a0b455deb12e6aee5fb2 (diff) | |
download | scummvm-rg350-99aa64bda4695ca704a2902d3c6b6bd705204043.tar.gz scummvm-rg350-99aa64bda4695ca704a2902d3c6b6bd705204043.tar.bz2 scummvm-rg350-99aa64bda4695ca704a2902d3c6b6bd705204043.zip |
XEEN: Fix crash on shooting
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/interface_map.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/engines/xeen/interface_map.cpp b/engines/xeen/interface_map.cpp index de19a9957a..a9e71d4e9c 100644 --- a/engines/xeen/interface_map.cpp +++ b/engines/xeen/interface_map.cpp @@ -572,18 +572,15 @@ void InterfaceMap::drawMap() { } } } else if (_charsShooting) { - for (int idx = 0; idx < 96; ++idx) { - if (_indoorList[162 + idx]._sprites != nullptr) { - _indoorList[162 + idx]._frame = 0; - } - else if (_indoorList[135 + idx]._sprites != nullptr) { - _indoorList[135 + idx]._frame = 1; - } - else if (_indoorList[111 + idx]._sprites != nullptr) { - _indoorList[111 + idx]._frame = 2; - } - else if (_indoorList[79 + idx]._sprites != nullptr) { - _indoorList[79 + idx]._frame = 0; + for (int idx = 0; idx < 8; ++idx) { + if (_indoorList._attackImgs1[idx]._sprites != nullptr) { + _indoorList._attackImgs1[idx]._frame = 0; + } else if (_indoorList._attackImgs2[idx]._sprites != nullptr) { + _indoorList._attackImgs2[idx]._frame = 1; + } else if (_indoorList._attackImgs3[idx]._sprites != nullptr) { + _indoorList._attackImgs3[idx]._frame = 2; + } else if (_indoorList._attackImgs4[idx]._sprites != nullptr) { + _indoorList._attackImgs4[idx]._frame = 0; } } } |