From 2cb05bedb970d6c4fcda91f52a3c5beb722d7ada Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 2 Jul 2003 00:46:24 +0000 Subject: possible fix for bug #763714: DIG: 'Trying to append to a nonexistant stream 0' svn-id: r8697 --- scumm/sound.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 28b95c776f..7f424c7875 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -574,8 +574,10 @@ int Sound::startTalkSound(uint32 offset, uint32 b, int mode) { void Sound::stopTalkSound() { if (_sfxMode & 2) { - if (_talkChannel != -1) + if (_talkChannel != -1) { _scumm->_mixer->stop(_talkChannel); + _talkChannel = -1; + } _sfxMode &= ~2; } } @@ -1078,8 +1080,8 @@ void Sound::bundleMusicHandler(Scumm *scumm) { _nameBundleMusic = ""; if (_bundleMusicTrack != -1) { _scumm->_mixer->stop(_bundleMusicTrack); + _bundleMusicTrack = -1; } - _bundleMusicTrack = -1; if (_musicBundleBufFinal) { free(_musicBundleBufFinal); _musicBundleBufFinal = NULL; -- cgit v1.2.3