aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth
diff options
context:
space:
mode:
authorAlyssa Milburn2011-06-03 00:03:56 +0200
committerAlyssa Milburn2011-06-03 00:06:02 +0200
commiteb9ea8fee679382fdab3778bf99b1bb718d89a08 (patch)
treeebb126932b6e8f167ee5709c1e2bfbc37d6abe20 /audio/softsynth
parent3db8abca689127989c95e3285bed26716ceb845a (diff)
downloadscummvm-rg350-eb9ea8fee679382fdab3778bf99b1bb718d89a08.tar.gz
scummvm-rg350-eb9ea8fee679382fdab3778bf99b1bb718d89a08.tar.bz2
scummvm-rg350-eb9ea8fee679382fdab3778bf99b1bb718d89a08.zip
AUDIO: Fix custom AdLib percussion instruments.
The struct wasn't being zeroed out, a regression from b22ca4ff.
Diffstat (limited to 'audio/softsynth')
-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