aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/adlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/softsynth/adlib.cpp')
-rw-r--r--audio/softsynth/adlib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/softsynth/adlib.cpp b/audio/softsynth/adlib.cpp
index 60de8fad60..4025a667ac 100644
--- a/audio/softsynth/adlib.cpp
+++ b/audio/softsynth/adlib.cpp
@@ -857,6 +857,7 @@ void AdLibPercussionChannel::sysEx_customInstrument(uint32 type, const byte *ins
// Allocate memory for the new instruments
if (!_customInstruments[note]) {
_customInstruments[note] = new AdLibInstrument;
+ memset(_customInstruments[note], 0, sizeof(AdLibInstrument));
}
// Save the new instrument data