aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-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;
}
}