mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
Changed an assert into a warning with a FIXME (happens in SQ1)
svn-id: r49994
This commit is contained in:
parent
31930b6d09
commit
0eee4e79bf
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user