aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWalter van Niftrik2010-01-17 20:00:58 +0000
committerWalter van Niftrik2010-01-17 20:00:58 +0000
commit22ea4eb621b3b6f3267157368958af556b1ce68a (patch)
treef31c3e8d640f687f837fce1c7cda97527ef44bc9 /engines
parent18da23407609040e700c6c759f1c0d2040c9e863 (diff)
downloadscummvm-rg350-22ea4eb621b3b6f3267157368958af556b1ce68a.tar.gz
scummvm-rg350-22ea4eb621b3b6f3267157368958af556b1ce68a.tar.bz2
scummvm-rg350-22ea4eb621b3b6f3267157368958af556b1ce68a.zip
SCI: Check GM patch before loading it
svn-id: r47345
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/softseq/midi.cpp2
1 files changed, 1 insertions, 1 deletions
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