aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-03 12:28:37 +0000
committerMax Horn2003-05-03 12:28:37 +0000
commit24b3b32b16e0049fa06e7cde3536cc682ccab712 (patch)
treef39f1f15b1f7148294e9d668dd969e1c50395ffc /scumm/sound.cpp
parent029b99691a34c59feabefca83c3e979a63ca8a7e (diff)
downloadscummvm-rg350-24b3b32b16e0049fa06e7cde3536cc682ccab712.tar.gz
scummvm-rg350-24b3b32b16e0049fa06e7cde3536cc682ccab712.tar.bz2
scummvm-rg350-24b3b32b16e0049fa06e7cde3536cc682ccab712.zip
fix for my hack :-)
svn-id: r7281
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r--scumm/sound.cpp5
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;
}
}