diff options
author | Filippos Karapetis | 2015-10-08 05:24:33 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 |
commit | 69694b6b459791a71aac39ba7a4ffaa0d643bc52 (patch) | |
tree | efe4ada9a0e68754cb298ae06aea124c5cf0571e | |
parent | afa9475d2ad18486203a73869930caff29a40dff (diff) | |
download | scummvm-rg350-69694b6b459791a71aac39ba7a4ffaa0d643bc52.tar.gz scummvm-rg350-69694b6b459791a71aac39ba7a4ffaa0d643bc52.tar.bz2 scummvm-rg350-69694b6b459791a71aac39ba7a4ffaa0d643bc52.zip |
LAB: Check if a sound effect is active before attempting to stop it
-rw-r--r-- | engines/lab/labmusic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lab/labmusic.cpp b/engines/lab/labmusic.cpp index 3f35579e2c..fe2d6e973c 100644 --- a/engines/lab/labmusic.cpp +++ b/engines/lab/labmusic.cpp @@ -128,7 +128,8 @@ void Music::playSoundEffect(uint16 SampleSpeed, uint32 Length, void *Data) { } void Music::stopSoundEffect() { - g_lab->_mixer->stopHandle(_sfxHandle); + if (isSoundEffectActive()) + g_lab->_mixer->stopHandle(_sfxHandle); } bool Music::isSoundEffectActive() const { |