1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 23:49:09 +00:00

Fix: correct checking of fluid_settings_setnum return code

This commit is contained in:
Milek7
2020-01-12 15:18:10 +01:00
committed by Charles Pigott
parent a411ce18c9
commit 823333c4b0

View File

@@ -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");
}
}