[Scummvm-cvs-logs] scummvm master -> eb9ea8fee679382fdab3778bf99b1bb718d89a08

fuzzie fuzzie at fuzzie.org
Fri Jun 3 00:08:04 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
eb9ea8fee6 AUDIO: Fix custom AdLib percussion instruments.


Commit: eb9ea8fee679382fdab3778bf99b1bb718d89a08
    https://github.com/scummvm/scummvm/commit/eb9ea8fee679382fdab3778bf99b1bb718d89a08
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-06-02T15:06:02-07:00

Commit Message:
AUDIO: Fix custom AdLib percussion instruments.

The struct wasn't being zeroed out, a regression from b22ca4ff.

Changed paths:
    audio/softsynth/adlib.cpp



diff --git a/audio/softsynth/adlib.cpp b/audio/softsynth/adlib.cpp
index 60de8fa..4025a66 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






More information about the Scummvm-git-logs mailing list