aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 01fdd86ac4..f665736b72 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -820,14 +820,14 @@ int Sound::isSoundRunning(int sound) const {
// getSoundStatus(), with a -1, will return the
// ID number of the first active music it finds.
if (_currentMusic)
- sound = _currentMusic;
+ return (_vm->_mixer->isSoundIDActive(_currentMusic) ? _currentMusic : 0);
else if (_vm->_imuse)
return (_vm->_imuse->getSoundStatus(sound));
} else if (sound >= 10000) {
// TODO report sound ID on channel
// channel = sound - 10000
if (sound == 10000)
- return _currentMusic;
+ return (_vm->_mixer->isSoundIDActive(_currentMusic) ? _currentMusic : 0);
else
return 0;
}