Init _opl to 0. This prevents a crash on exit when the Adlib driver is closed, if the game music driver doesn't support music for the currently playing game (e.g. Christmas 1998)

svn-id: r41339
This commit is contained in:
Filippos Karapetis 2009-06-07 16:44:57 +00:00
parent 744323ca33
commit 36cdd09223

View File

@ -35,7 +35,7 @@ public:
kRhythmKeys = 62
};
MidiDriver_Adlib(Audio::Mixer *mixer) : MidiDriver_Emulated(mixer), _playSwitch(true), _masterVolume(15), _rhythmKeyMap(0) { }
MidiDriver_Adlib(Audio::Mixer *mixer) : MidiDriver_Emulated(mixer), _playSwitch(true), _masterVolume(15), _rhythmKeyMap(0), _opl(0) { }
~MidiDriver_Adlib() { }
// MidiDriver