diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/game.cpp | 2 | ||||
-rw-r--r-- | engines/mads/player.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp index f8d6c36ebf..ac77aec4ae 100644 --- a/engines/mads/game.cpp +++ b/engines/mads/game.cpp @@ -170,7 +170,7 @@ void Game::gameLoop() { sectionLoop(); _player.releasePlayerSprites(); - assert(_scene._sprites.size() == 0); + assert(_scene._sprites._assetCount == 0); _vm->_palette->unlock(); _vm->_events->waitCursor(); diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp index a9c9f113ff..a9bc0cd485 100644 --- a/engines/mads/player.cpp +++ b/engines/mads/player.cpp @@ -694,8 +694,7 @@ void Player::releasePlayerSprites() { _spritesLoaded = false; _spritesChanged = true; - // FIXME: Find out why this occurs - if (scene._sprites.size() > 0) { + if (scene._sprites._assetCount > 0) { warning("Player::releasePlayerSprites(): leftover sprites remain, clearing list"); scene._sprites.clear(); } |