Changed an assert into a warning with a FIXME (happens in SQ1)

svn-id: r49994
This commit is contained in:
Filippos Karapetis 2010-06-18 02:16:00 +00:00
parent 31930b6d09
commit 0eee4e79bf

View File

@ -160,7 +160,12 @@ void MidiParser_SCI::sendToDriver(uint32 b) {
return;
// Channel remapping
int16 realChannel = _channelRemap[midiChannel];
assert(realChannel != -1);
if (realChannel == -1) {
// FIXME: Happens in SQ1VGA when the game starts
warning("Attempt to send to uninitialized channel %d", midiChannel);
return;
}
b = (b & 0xFFFFFFF0) | realChannel;
_driver->send(b);
}