From 4f6f0fb148133df632104071185efa049c7d5fea Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 18 Feb 2015 09:33:03 +0100 Subject: SCI: Fix digital audio Regression from 5028487038fd, where I assumed all songs were MIDI. --- engines/sci/sound/soundcmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp index 64991cbf5c..ee5903fda2 100644 --- a/engines/sci/sound/soundcmd.cpp +++ b/engines/sci/sound/soundcmd.cpp @@ -186,7 +186,9 @@ void SoundCommandParser::processPlaySound(reg_t obj, bool playBed) { musicSlot->loop = readSelectorValue(_segMan, obj, SELECTOR(loop)); // Get song priority from either obj or soundRes - byte resourcePriority = musicSlot->soundRes->getSoundPriority(); + byte resourcePriority = 0xFF; + if (musicSlot->soundRes) + resourcePriority = musicSlot->soundRes->getSoundPriority(); if (!musicSlot->overridePriority && resourcePriority != 0xFF) { musicSlot->priority = resourcePriority; } else { -- cgit v1.2.3