Fix: correct checking of fluid_settings_setnum return code

pull/132/head
Milek7 4 years ago committed by Charles Pigott
parent a411ce18c9
commit 823333c4b0

@ -153,7 +153,7 @@ void MusicDriver_FluidSynth::SetVolume(byte vol)
* volume". Set gain using OpenTTD's volume, as a number between 0
* and 0.2. */
double gain = (1.0 * vol) / (128.0 * 5.0);
if (fluid_settings_setnum(_midi.settings, "synth.gain", gain) != 1) {
if (fluid_settings_setnum(_midi.settings, "synth.gain", gain) != FLUID_OK) {
DEBUG(driver, 0, "Could not set volume");
}
}

Loading…
Cancel
Save