1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 18:09:09 +00:00

Fix: [Fluidsynth] Crash when debug output enabled (#9446)

This commit is contained in:
Charles Pigott
2021-07-19 10:36:35 +01:00
committed by GitHub
parent 9421cb1e2c
commit 1e529e1632

View File

@@ -65,7 +65,7 @@ const char *MusicDriver_FluidSynth::Start(const StringList &param)
const char *sfont_name = GetDriverParam(param, "soundfont");
int sfont_id;
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name);
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name != nullptr ? sfont_name : "(null)");
/* Create the settings. */
_midi.settings = new_fluid_settings();