aboutsummaryrefslogtreecommitdiff
path: root/scumm/imuse.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-13 14:54:58 +0000
committerMax Horn2002-11-13 14:54:58 +0000
commitc5847f6f3bebe19d2786670bcd14c9fcd5ea29b9 (patch)
treea7789322bb6eab1acc80f55ffe5e56a08d8d4bd5 /scumm/imuse.cpp
parentaae641c6cfcf692c8f66d3f1bb7ca111fc5ef37d (diff)
downloadscummvm-rg350-c5847f6f3bebe19d2786670bcd14c9fcd5ea29b9.tar.gz
scummvm-rg350-c5847f6f3bebe19d2786670bcd14c9fcd5ea29b9.tar.bz2
scummvm-rg350-c5847f6f3bebe19d2786670bcd14c9fcd5ea29b9.zip
more initialisation fixes
svn-id: r5532
Diffstat (limited to 'scumm/imuse.cpp')
-rw-r--r--scumm/imuse.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp
index a677003716..0c14bc0df3 100644
--- a/scumm/imuse.cpp
+++ b/scumm/imuse.cpp
@@ -265,6 +265,7 @@ struct IsNoteCmdData {
struct MidiChannel {
Part *_part;
+ MidiChannel() : _part(0) {}
MidiChannelAdl *adl() { return (MidiChannelAdl *)this; }
MidiChannelGM *gm() { return (MidiChannelGM *)this; }
};
@@ -273,6 +274,7 @@ struct MidiChannel {
struct MidiChannelGM : MidiChannel {
byte _chan;
uint16 _actives[8];
+ MidiChannelGM() : _chan(0) { memset(_actives, 0, 16); }
};
@@ -568,9 +570,11 @@ struct MidiChannelAdl : MidiChannel {
Struct11 _s11a;
Struct10 _s10b;
Struct11 _s11b;
+
+ MidiChannelAdl() : _next(0), _prev(0) {}
};
-class IMuseAdlib:public IMuseDriver {
+class IMuseAdlib : public IMuseDriver {
private:
FM_OPL *_opl;
byte *_adlib_reg_cache;