aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-14 10:11:19 -0400
committerPaul Gilbert2015-03-14 10:11:19 -0400
commit0f02cdb4aa0a0e29bea414583a6db8a5ae389f49 (patch)
tree2cb0bbd477458f9b65804ace4819ba5a542da932 /engines/mads/scene.cpp
parent1f8845e9f433365c3586240b4e395cf888ec770b (diff)
downloadscummvm-rg350-0f02cdb4aa0a0e29bea414583a6db8a5ae389f49.tar.gz
scummvm-rg350-0f02cdb4aa0a0e29bea414583a6db8a5ae389f49.tar.bz2
scummvm-rg350-0f02cdb4aa0a0e29bea414583a6db8a5ae389f49.zip
MADS: Fix crash in stream crossing death, simplify SpriteSets class
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index bbc83a791b..463d4a62fd 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -676,7 +676,7 @@ void Scene::freeCurrentScene() {
}
void Scene::removeSprites() {
- for (int idx = _sprites._assetCount - 1; idx >= _spritesCount; --idx)
+ for (int idx = _sprites.size() - 1; idx >= _spritesCount; --idx)
_sprites.remove(idx);
}