summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 aa7076771..3b4789c66 100644
--- a/src/music/fluidsynth.cpp
+++ b/src/music/fluidsynth.cpp
@@ -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");
}
}