diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-07-19 10:36:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 10:36:35 +0100 |
commit | 1e529e16329b905e625bb69cc501edbc478186bc (patch) | |
tree | be1da18cc2d6667958b27e73465aa05835007efc | |
parent | 9421cb1e2cf05da208872bc16a0ac6cd19100a73 (diff) | |
download | openttd-1e529e16329b905e625bb69cc501edbc478186bc.tar.xz |
Fix: [Fluidsynth] Crash when debug output enabled (#9446)
-rw-r--r-- | src/music/fluidsynth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/fluidsynth.cpp b/src/music/fluidsynth.cpp index dc1a0a319..211bc959e 100644 --- a/src/music/fluidsynth.cpp +++ b/src/music/fluidsynth.cpp @@ -65,7 +65,7 @@ const char *MusicDriver_FluidSynth::Start(const StringList ¶m) 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(); |