aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simon/midi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/simon/midi.cpp b/simon/midi.cpp
index 928c1a0d5d..1741b66170 100644
--- a/simon/midi.cpp
+++ b/simon/midi.cpp
@@ -37,10 +37,16 @@ MidiPlayer::MidiPlayer (OSystem *system) {
_parser = 0;
_data = 0;
+ memset(_volumeTable, 0, sizeof(_volumeTable));
_masterVolume = 255;
_paused = false;
_currentTrack = 255;
+
_num_songs = 0;
+ memset(_songs, 0, sizeof(_songs));
+ memset(_song_sizes, 0, sizeof(_song_sizes));
+
+ _midi_sfx_toggle = false
}
MidiPlayer::~MidiPlayer() {