aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:35:42 +0000
committerEugene Sandulenko2010-06-15 10:35:42 +0000
commit85d8b4f5d848c0e1ec6c7b4ef3e6bdd839b05197 (patch)
treeb748ad81cf1216dbb9aa0cd3616dcf268137c2ac
parent9358b54332411498e1dec39ceb90b60748d7c921 (diff)
downloadscummvm-rg350-85d8b4f5d848c0e1ec6c7b4ef3e6bdd839b05197.tar.gz
scummvm-rg350-85d8b4f5d848c0e1ec6c7b4ef3e6bdd839b05197.tar.bz2
scummvm-rg350-85d8b4f5d848c0e1ec6c7b4ef3e6bdd839b05197.zip
AGI: Make sure that sound variable is reset once music is stopped.
svn-id: r49754
-rw-r--r--engines/agi/sound.cpp3
1 files changed, 3 insertions, 0 deletions
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() {