Skip to content

Commit

Permalink
SCI: Fix uninitialized read in SoundCommandParser
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Jun 13, 2016
1 parent e3fff12 commit b51d60f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/sci/sound/soundcmd.cpp
Expand Up @@ -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
Expand Down

0 comments on commit b51d60f

Please sign in to comment.