Skip to content

Commit

Permalink
XEEN: Fix crash on shooting
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Feb 28, 2015
1 parent b378709 commit 99aa64b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions engines/xeen/interface_map.cpp
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 99aa64b

Please sign in to comment.