aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-04 18:55:05 -0500
committerPaul Gilbert2015-03-04 18:55:05 -0500
commitcecb9a9ecc1ec1897fdd27e1bafc7f6d494cd6af (patch)
tree1219f2ba2eb839dde9f31b675e7f8c17a1777333
parentd9564d4cb2a0275698119b22e6ef3df32472d1da (diff)
downloadscummvm-rg350-cecb9a9ecc1ec1897fdd27e1bafc7f6d494cd6af.tar.gz
scummvm-rg350-cecb9a9ecc1ec1897fdd27e1bafc7f6d494cd6af.tar.bz2
scummvm-rg350-cecb9a9ecc1ec1897fdd27e1bafc7f6d494cd6af.zip
MADS: Fix crash throwing bones to dog
-rw-r--r--engines/mads/player.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp
index 8720aeead3..a257cea264 100644
--- a/engines/mads/player.cpp
+++ b/engines/mads/player.cpp
@@ -790,9 +790,7 @@ void Player::removePlayerSprites() {
}
}
- if (scene._activeAnimation != nullptr)
- scene._activeAnimation->resetSpriteSetsCount();
-
+ scene._spriteSlots.clear();
scene._spriteSlots.fullRefresh();
_visible = false;
}