diff options
Diffstat (limited to 'Alc/midi')
-rw-r--r-- | Alc/midi/sf2load.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c index 43f960c6..30c4c737 100644 --- a/Alc/midi/sf2load.c +++ b/Alc/midi/sf2load.c @@ -1340,6 +1340,7 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context) for(i = 0;i < pids.ids_size;i++) IncrementRef(&presets[i]->ref); presets = ExchangePtr((XchgPtr*)&soundfont->Presets, presets); + ExchangeInt(&soundfont->NumPresets, pids.ids_size); free(presets); } |