From 22ea4eb621b3b6f3267157368958af556b1ce68a Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Sun, 17 Jan 2010 20:00:58 +0000 Subject: SCI: Check GM patch before loading it svn-id: r47345 --- engines/sci/sound/softseq/midi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/sound/softseq/midi.cpp b/engines/sci/sound/softseq/midi.cpp index 0d6534d805..7951387762 100644 --- a/engines/sci/sound/softseq/midi.cpp +++ b/engines/sci/sound/softseq/midi.cpp @@ -591,7 +591,7 @@ int MidiPlayer_Midi::open(ResourceManager *resMan) { // General MIDI res = resMan->findResource(ResourceId(kResourceTypePatch, 4), 0); - if (res) { + if (res && isMt32GmPatch(res->data, res->size)) { readMt32GmPatch(res->data, res->size); // Detect the format of patch 1, so that we know what play mask to use -- cgit v1.2.3