From 2c9ad1ee9b439998b2dac178d295ce3f328b41ae Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 14 Feb 2015 21:34:09 -0500 Subject: [PATCH] MADS: Fix death animations for seaweed and underwater mine --- engines/mads/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp index 61db1a6a32b..a72648f0c91 100644 --- a/engines/mads/scene.cpp +++ b/engines/mads/scene.cpp @@ -675,7 +675,7 @@ void Scene::freeCurrentScene() { } void Scene::removeSprites() { - for (int idx = _sprites.size() - 1; idx >= _spritesCount; --idx) + for (int idx = _sprites._assetCount - 1; idx >= _spritesCount; --idx) _sprites.remove(idx); }