aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorAlyssa Milburn2014-08-09 23:11:47 +0200
committerAlyssa Milburn2014-08-09 23:11:47 +0200
commitc3f3b623d6492e172db959b310ca4bcfd84f280e (patch)
tree872058477323e4829780da9a8002d5529803b253 /engines/composer
parent94f83598968de6e7fb2b16e7eece19d6336552af (diff)
downloadscummvm-rg350-c3f3b623d6492e172db959b310ca4bcfd84f280e.tar.gz
scummvm-rg350-c3f3b623d6492e172db959b310ca4bcfd84f280e.tar.bz2
scummvm-rg350-c3f3b623d6492e172db959b310ca4bcfd84f280e.zip
COMPOSER: Remove sprites when stopping V1 scripts (bug #6091).
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/scripting.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/composer/scripting.cpp b/engines/composer/scripting.cpp
index 94ca2c1bc8..cd78202ecd 100644
--- a/engines/composer/scripting.cpp
+++ b/engines/composer/scripting.cpp
@@ -746,6 +746,7 @@ void ComposerEngine::stopOldScript(uint16 id) {
for (Common::List<OldScript *>::iterator i = _oldScripts.begin(); i != _oldScripts.end(); i++) {
if ((*i)->_id == id) {
+ removeSprite(0, id);
delete *i;
i = _oldScripts.reverse_erase(i);
}