diff options
Diffstat (limited to 'engines/mads/player.cpp')
-rw-r--r-- | engines/mads/player.cpp | 4 |
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; } } |