From c3f3b623d6492e172db959b310ca4bcfd84f280e Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sat, 9 Aug 2014 23:11:47 +0200 Subject: COMPOSER: Remove sprites when stopping V1 scripts (bug #6091). --- engines/composer/scripting.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/composer') 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::iterator i = _oldScripts.begin(); i != _oldScripts.end(); i++) { if ((*i)->_id == id) { + removeSprite(0, id); delete *i; i = _oldScripts.reverse_erase(i); } -- cgit v1.2.3