Skip to content

Commit

Permalink
SCI: Silence a gcc conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Jun 1, 2014
1 parent 460a911 commit a83ce70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/sound/soundcmd.cpp
Expand Up @@ -61,7 +61,7 @@ reg_t SoundCommandParser::kDoSoundInit(int argc, reg_t *argv, reg_t acc) {
}

int SoundCommandParser::getSoundResourceId(reg_t obj) {
int resourceId = obj.getSegment() ? readSelectorValue(_segMan, obj, SELECTOR(number)) : -1;
int resourceId = obj.getSegment() ? (int)readSelectorValue(_segMan, obj, SELECTOR(number)) : -1;
// Modify the resourceId for the Windows versions that have an alternate MIDI soundtrack, like SSCI did.
if (g_sci && g_sci->_features->useAltWinGMSound()) {
// Check if the alternate MIDI song actually exists...
Expand Down

0 comments on commit a83ce70

Please sign in to comment.