mirror of https://github.com/OpenTTD/OpenTTD
Fix 261e09a549: Compilation failure with Fluidsynth enabled. (#14167)
parent
7bec2029fa
commit
356b0159c7
|
@ -105,7 +105,7 @@ std::optional<std::string_view> MusicDriver_FluidSynth::Start(const StringList &
|
||||||
}
|
}
|
||||||
if (sfont_id == FLUID_FAILED) return "Could not open any sound font";
|
if (sfont_id == FLUID_FAILED) return "Could not open any sound font";
|
||||||
} else {
|
} else {
|
||||||
std::string name{sfont_name};
|
std::string name{sfont_name.value()};
|
||||||
sfont_id = fluid_synth_sfload(_midi.synth, name.c_str(), 1);
|
sfont_id = fluid_synth_sfload(_midi.synth, name.c_str(), 1);
|
||||||
if (sfont_id == FLUID_FAILED) return "Could not open sound font";
|
if (sfont_id == FLUID_FAILED) return "Could not open sound font";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue