From 2625c9b20be6ed4bef0fd8da600729a7316d7ac4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 12 Jun 2010 23:53:26 +0000 Subject: Applied fix for checking unallocated channels for All Notes Off MIDI command svn-id: r49613 --- engines/m4/midi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/m4/midi.cpp b/engines/m4/midi.cpp index 78fe0d6bd6..2c767fdf5a 100644 --- a/engines/m4/midi.cpp +++ b/engines/m4/midi.cpp @@ -109,7 +109,7 @@ void MidiPlayer::send(uint32 b) { else if ((b & 0xFFF0) == 0x007BB0) { //Only respond to All Notes Off if this channel //has currently been allocated - if (_channel[b & 0x0F]) + if (!_channel[b & 0x0F]) return; } -- cgit v1.2.3