mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-19 06:02:03 +00:00
Fix ordering of operations (#647)
This commit is contained in:
parent
304096add7
commit
d63524683f
1 changed files with 5 additions and 5 deletions
|
@ -554,16 +554,16 @@ int fluid_defsfont_add_preset(fluid_defsfont_t *defsfont, fluid_defpreset_t *def
|
|||
fluid_defpreset_preset_noteon,
|
||||
fluid_defpreset_preset_delete);
|
||||
|
||||
if(defsfont->dynamic_samples)
|
||||
{
|
||||
preset->notify = dynamic_samples_preset_notify;
|
||||
}
|
||||
|
||||
if(preset == NULL)
|
||||
{
|
||||
return FLUID_FAILED;
|
||||
}
|
||||
|
||||
if(defsfont->dynamic_samples)
|
||||
{
|
||||
preset->notify = dynamic_samples_preset_notify;
|
||||
}
|
||||
|
||||
fluid_preset_set_data(preset, defpreset);
|
||||
|
||||
defsfont->preset = fluid_list_append(defsfont->preset, preset);
|
||||
|
|
Loading…
Reference in a new issue