From 85d8b4f5d848c0e1ec6c7b4ef3e6bdd839b05197 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 15 Jun 2010 10:35:42 +0000 Subject: AGI: Make sure that sound variable is reset once music is stopped. svn-id: r49754 --- engines/agi/sound.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index c4c695c59e..c35b23ae55 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -231,6 +231,9 @@ void SoundMgr::stopSound() { _playingSound = -1; } + + if (_endflag != -1) + _vm->setflag(_endflag, true); } int SoundMgr::initSound() { -- cgit v1.2.3