summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-07-19 10:36:35 +0100
committerGitHub <noreply@github.com>2021-07-19 10:36:35 +0100
commit1e529e16329b905e625bb69cc501edbc478186bc (patch)
treebe1da18cc2d6667958b27e73465aa05835007efc /src/music
parent9421cb1e2cf05da208872bc16a0ac6cd19100a73 (diff)
downloadopenttd-1e529e16329b905e625bb69cc501edbc478186bc.tar.xz
Fix: [Fluidsynth] Crash when debug output enabled (#9446)
Diffstat (limited to 'src/music')
-rw-r--r--src/music/fluidsynth.cpp2
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 &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();