From 5eb1da42c3e215ef852c0aae88d94624897c3f9b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 16 Oct 2016 23:25:38 +0200 Subject: FULLPIPE: Fix steps sounds --- engines/fullpipe/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp index e7432a62c4..cd6647177e 100644 --- a/engines/fullpipe/sound.cpp +++ b/engines/fullpipe/sound.cpp @@ -139,7 +139,7 @@ bool Sound::load(MfcArchive &file, NGIArchive *archive) { } void Sound::updateVolume() { - debug(9, "STUB Sound::updateVolume()"); + // not needed in our implementation } void Sound::setPanAndVolumeByStaticAni() { @@ -479,7 +479,8 @@ void global_messageHandler_handleSound(ExCommand *cmd) { Sound *snd = 0; for (int i = 0; i < g_fp->_currSoundListCount; i++) - snd = g_fp->_currSoundList1[i]->getSoundItemById(cmd->_messageNum); + if ((snd = g_fp->_currSoundList1[i]->getSoundItemById(cmd->_messageNum)) != NULL) + break; if (!snd) return; -- cgit v1.2.3