diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-06 22:41:04 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-06 22:41:04 +0300 |
commit | 0c1b3519b6724d22b64db2cdc91c3b0f44579ca8 (patch) | |
tree | 869cfbe3841312fa00c9fa230dafc491026602a3 /src/adlmidi_load.cpp | |
parent | 49ab43701d5c5800fda3543a9697e5aab2da2638 (diff) | |
download | libADLMIDI-0c1b3519b6724d22b64db2cdc91c3b0f44579ca8.tar.gz libADLMIDI-0c1b3519b6724d22b64db2cdc91c3b0f44579ca8.tar.bz2 libADLMIDI-0c1b3519b6724d22b64db2cdc91c3b0f44579ca8.zip |
Fixed inability to load another custom bank!
Damn, this is so silly: Data of new bank data was added to tail of old data as I forgot to clean up that crap before to fill with a new data, damn! (#83)
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r-- | src/adlmidi_load.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index 703f34a..36dbf70 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -194,6 +194,9 @@ bool MIDIplay::LoadBank(MIDIplay::fileReader &fr) /* TODO: Avoid memory reallocation in nearest future! */ opl.dynamic_melodic_banks.clear(); opl.dynamic_percussion_banks.clear(); + opl.dynamic_instruments.clear(); + opl.dynamic_metainstruments.clear(); + opl.dynamic_percussion_offset = 0; opl.setEmbeddedBank(m_setup.AdlBank); |