aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2016-06-11 16:53:17 -0500
committerColin Snover2016-06-12 20:28:34 -0500
commitb51d60f85c70554502445ba4bd59b8fba41ef40b (patch)
treee6e591f4ce4cb9da98297675ff03dfddf0b6878c
parente3fff124ee2f05370156d28e565a3e156b0a41b0 (diff)
downloadscummvm-rg350-b51d60f85c70554502445ba4bd59b8fba41ef40b.tar.gz
scummvm-rg350-b51d60f85c70554502445ba4bd59b8fba41ef40b.tar.bz2
scummvm-rg350-b51d60f85c70554502445ba4bd59b8fba41ef40b.zip
SCI: Fix uninitialized read in SoundCommandParser
-rw-r--r--engines/sci/sound/soundcmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index fe33ea1feb..efa4735bf4 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -118,6 +118,7 @@ void SoundCommandParser::processInitSound(reg_t obj) {
newSound->resourceId = resourceId;
newSound->soundObj = obj;
newSound->loop = readSelectorValue(_segMan, obj, SELECTOR(loop));
+ newSound->overridePriority = false;
if (_soundVersion <= SCI_VERSION_0_LATE)
newSound->priority = readSelectorValue(_segMan, obj, SELECTOR(priority));
else