aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-06-07 16:44:57 +0000
committerFilippos Karapetis2009-06-07 16:44:57 +0000
commit36cdd09223aeb0b1839635e55e42131fc6834b3e (patch)
tree415ada94c8b10ee14633ad86ed0be185eecc66b1 /engines
parent744323ca33ad94f4be7de9d3e394bf02725b5f7a (diff)
downloadscummvm-rg350-36cdd09223aeb0b1839635e55e42131fc6834b3e.tar.gz
scummvm-rg350-36cdd09223aeb0b1839635e55e42131fc6834b3e.tar.bz2
scummvm-rg350-36cdd09223aeb0b1839635e55e42131fc6834b3e.zip
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
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sfx/softseq/adlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/adlib.h b/engines/sci/sfx/softseq/adlib.h
index 13cf1e2d95..38f755bec0 100644
--- a/engines/sci/sfx/softseq/adlib.h
+++ b/engines/sci/sfx/softseq/adlib.h
@@ -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