mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [Fluidsynth] Crash when debug output enabled (#9446)
This commit is contained in:
parent
9421cb1e2c
commit
1e529e1632
|
@ -65,7 +65,7 @@ const char *MusicDriver_FluidSynth::Start(const StringList ¶m)
|
||||||
const char *sfont_name = GetDriverParam(param, "soundfont");
|
const char *sfont_name = GetDriverParam(param, "soundfont");
|
||||||
int sfont_id;
|
int sfont_id;
|
||||||
|
|
||||||
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name);
|
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name != nullptr ? sfont_name : "(null)");
|
||||||
|
|
||||||
/* Create the settings. */
|
/* Create the settings. */
|
||||||
_midi.settings = new_fluid_settings();
|
_midi.settings = new_fluid_settings();
|
||||||
|
|
Loading…
Reference in New Issue