From 4dddfd44ceb8de712e51e83738f897ea9f9d3444 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 15 Jun 2010 10:28:40 +0000 Subject: AGI: Fix bug #2960584. Bug #2960584: "AGI: (Fan) SQ0: Music lost on saving (and loading)". Actually music did not loop at all. Our looping code was broken. svn-id: r49735 --- engines/agi/sound.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index ca5d42d981..1b76b1ee40 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -411,6 +411,8 @@ void SoundMgr::stopSound() { debugC(3, kDebugLevelSound, "stopSound() --> %d", _playingSound); + _vm->setflag(_endflag, true); + _endflag = -1; if (_vm->_soundemu != SOUND_EMU_APPLE2GS) { for (i = 0; i < NUM_CHANNELS; i++) -- cgit v1.2.3