aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-05 07:40:47 -0500
committerPaul Gilbert2015-03-05 07:40:47 -0500
commitbb175b39c1aa9f6b03431bc2e89817ec138f91c3 (patch)
tree97a8b2efbad561d09102e80a7066634e1cc28fb9
parent53cd90b32c7ad6fe7e1ac5f4c781c5e776bd9348 (diff)
downloadscummvm-rg350-bb175b39c1aa9f6b03431bc2e89817ec138f91c3.tar.gz
scummvm-rg350-bb175b39c1aa9f6b03431bc2e89817ec138f91c3.tar.bz2
scummvm-rg350-bb175b39c1aa9f6b03431bc2e89817ec138f91c3.zip
MADS: Fix screwed up death animation when getting eaten in village stream
-rw-r--r--engines/mads/player.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp
index a257cea264..68e0355df9 100644
--- a/engines/mads/player.cpp
+++ b/engines/mads/player.cpp
@@ -785,8 +785,10 @@ void Player::removePlayerSprites() {
int heroSpriteId = _spritesStart;
for (int i = 0; i < 8; i++) {
if (_spriteSetsPresent[i]) {
- scene._sprites.remove(heroSpriteId++);
+ delete scene._sprites[heroSpriteId];
+ scene._sprites[heroSpriteId] = nullptr;
_spriteSetsPresent[i] = false;
+ ++heroSpriteId;
}
}