aboutsummaryrefslogtreecommitdiff
path: root/sky/sound.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2003-07-14 20:01:54 +0000
committerRobert Göffringmann2003-07-14 20:01:54 +0000
commit66823befe2bafb7bfbab9ec03c7981a3fda2c601 (patch)
tree6e1a8759fd1590bb974c23c19ce77a08bb5e395a /sky/sound.cpp
parent177d5d6b11e26a49fb1bfbab5ddf9e7d825adb4d (diff)
downloadscummvm-rg350-66823befe2bafb7bfbab9ec03c7981a3fda2c601.tar.gz
scummvm-rg350-66823befe2bafb7bfbab9ec03c7981a3fda2c601.tar.bz2
scummvm-rg350-66823befe2bafb7bfbab9ec03c7981a3fda2c601.zip
maybe this fixed those random crashes...
svn-id: r9021
Diffstat (limited to 'sky/sound.cpp')
-rw-r--r--sky/sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sky/sound.cpp b/sky/sound.cpp
index 3244c94834..3563dbaa05 100644
--- a/sky/sound.cpp
+++ b/sky/sound.cpp
@@ -1067,6 +1067,7 @@ int SkySound::playSound(uint32 id, byte *sound, uint32 size, PlayingSoundHandle
void SkySound::loadSection(uint8 pSection) {
fnStopFx();
+ _mixer->stopAll();
if (_soundData) free(_soundData);
_soundData = _skyDisk->loadFile(pSection * 4 + SOUND_FILE_BASE, NULL);