diff options
author | Max Horn | 2003-05-20 14:55:47 +0000 |
---|---|---|
committer | Max Horn | 2003-05-20 14:55:47 +0000 |
commit | d1391702ea5c8a72ba5935a5c402a64454edc7a9 (patch) | |
tree | 99efc0559ea43869e430b7201703e468d092ae08 /sound | |
parent | b2c823b1e10c71328399614ba8724047a5cdb9ff (diff) | |
download | scummvm-rg350-d1391702ea5c8a72ba5935a5c402a64454edc7a9.tar.gz scummvm-rg350-d1391702ea5c8a72ba5935a5c402a64454edc7a9.tar.bz2 scummvm-rg350-d1391702ea5c8a72ba5935a5c402a64454edc7a9.zip |
init member vars to 0
svn-id: r7732
Diffstat (limited to 'sound')
-rw-r--r-- | sound/midiparser_smf.cpp | 1 | ||||
-rw-r--r-- | sound/midiparser_xmidi.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sound/midiparser_smf.cpp b/sound/midiparser_smf.cpp index 4682032ddb..61b6c0ac4a 100644 --- a/sound/midiparser_smf.cpp +++ b/sound/midiparser_smf.cpp @@ -43,6 +43,7 @@ protected: void parseNextEvent (EventInfo &info); public: + MidiParser_SMF() : _data(0), _buffer(0), _malformedPitchBends(false) {} ~MidiParser_SMF(); bool loadMusic (byte *data, uint32 size); diff --git a/sound/midiparser_xmidi.cpp b/sound/midiparser_xmidi.cpp index 407366301d..84fdf99cf8 100644 --- a/sound/midiparser_xmidi.cpp +++ b/sound/midiparser_xmidi.cpp @@ -36,6 +36,7 @@ struct NoteTimer { byte channel; byte note; uint32 off_time; + NoteTimer() : channel(0), note(0), off_time(0) {} }; class MidiParser_XMIDI : public MidiParser { @@ -51,6 +52,7 @@ protected: void parseNextEvent (EventInfo &info); public: + MidiParser_XMIDI() : _data(0), _inserted_delta(0) {} ~MidiParser_XMIDI() { } bool loadMusic (byte *data, uint32 size); |