From 24b3b32b16e0049fa06e7cde3536cc682ccab712 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 3 May 2003 12:28:37 +0000 Subject: fix for my hack :-) svn-id: r7281 --- scumm/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scumm') 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; } } -- cgit v1.2.3