diff options
author | Max Horn | 2003-05-03 12:28:37 +0000 |
---|---|---|
committer | Max Horn | 2003-05-03 12:28:37 +0000 |
commit | 24b3b32b16e0049fa06e7cde3536cc682ccab712 (patch) | |
tree | f39f1f15b1f7148294e9d668dd969e1c50395ffc /scumm | |
parent | 029b99691a34c59feabefca83c3e979a63ca8a7e (diff) | |
download | scummvm-rg350-24b3b32b16e0049fa06e7cde3536cc682ccab712.tar.gz scummvm-rg350-24b3b32b16e0049fa06e7cde3536cc682ccab712.tar.bz2 scummvm-rg350-24b3b32b16e0049fa06e7cde3536cc682ccab712.zip |
fix for my hack :-)
svn-id: r7281
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 1f0abc11c5..1ac6a5686d 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -432,8 +432,9 @@ void Sound::playSound(int soundID) { // in these games, only music. Once we add SFX support, we'll have to // revise it / replace it by a proper fix. static int lastSound = -1; - if (lastSound > 0 && ptr) { - stopSound(lastSound); + if (ptr) { + if (lastSound > 0) + stopSound(lastSound); lastSound = soundID; } } |