From cd269445f53547ace60de132a9942ea485a86eec Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 2 Jul 2003 06:43:24 +0000 Subject: Initialize midiChannelNumber to 0. I don't know if this is always the right thing to do, but leaving it unintialized isn't a good idea either since that will cause stopMusic() to send bad commands to the MIDI driver in some cases. At least in the case of the ALSA driver, this will cause ScummVM to terminate with an "Unknown Command" error. svn-id: r8705 --- sky/music/gmchannel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'sky') diff --git a/sky/music/gmchannel.cpp b/sky/music/gmchannel.cpp index c321a00163..5d09a75ecf 100644 --- a/sky/music/gmchannel.cpp +++ b/sky/music/gmchannel.cpp @@ -53,6 +53,7 @@ SkyGmChannel::SkyGmChannel(uint8 *pMusicData, uint16 startOfData, MidiDriver *pM { _musicData = pMusicData; _midiDrv = pMidiDrv; + _channelData.midiChannelNumber = 0; _channelData.startOfData = startOfData; _channelData.eventDataPtr = startOfData; _channelData.channelActive = 1; -- cgit v1.2.3