diff options
author | Martin Kiewitz | 2015-06-29 00:21:14 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-06-29 00:21:14 +0200 |
commit | 333e4d3463ace48a42e2720cacb86995e0dc2601 (patch) | |
tree | bc6705b0c9541621ab5bf3a6e47cb381c0a60206 /audio | |
parent | 50b822c60e1e215dfba501da94a7da91bf3e0788 (diff) | |
download | scummvm-rg350-333e4d3463ace48a42e2720cacb86995e0dc2601.tar.gz scummvm-rg350-333e4d3463ace48a42e2720cacb86995e0dc2601.tar.bz2 scummvm-rg350-333e4d3463ace48a42e2720cacb86995e0dc2601.zip |
AUDIO: Miles Audio MT32: fix instrument installing
Diffstat (limited to 'audio')
-rw-r--r-- | audio/miles_mt32.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/miles_mt32.cpp b/audio/miles_mt32.cpp index af99abc59c..79406175e7 100644 --- a/audio/miles_mt32.cpp +++ b/audio/miles_mt32.cpp @@ -538,6 +538,7 @@ const MilesMT32InstrumentEntry *MidiDriver_Miles_MT32::searchCustomInstrument(by for (uint16 instrumentNr = 0; instrumentNr < _instrumentTableCount; instrumentNr++) { if ((instrumentPtr->bankId == patchBank) && (instrumentPtr->patchId == patchId)) return instrumentPtr; + instrumentPtr++; } return NULL; } @@ -589,7 +590,7 @@ int16 MidiDriver_Miles_MT32::installCustomTimbre(byte patchBank, byte patchId) { const MilesMT32InstrumentEntry *instrumentPtr = NULL; // Check, if requested instrument is actually available - instrumentPtr = this->searchCustomInstrument(patchBank, patchId); + instrumentPtr = searchCustomInstrument(patchBank, patchId); if (!instrumentPtr) { return -1; // not found -> bail out } |