summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-03-09 07:58:20 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-03-09 07:58:20 +0100
commitfedef7bda32624675bdf8f06d4161e48b41e53d8 (patch)
tree89c7e82b5779518d3239a07b4aadcb6aab47c464 /src
parentMerge pull request #2210 from lioncash/optional (diff)
downloadyuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.tar
yuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.tar.gz
yuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.tar.bz2
yuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.tar.lz
yuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.tar.xz
yuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.tar.zst
yuzu-fedef7bda32624675bdf8f06d4161e48b41e53d8.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu_cmd/config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index ca880dc65..52a08abdb 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -366,7 +366,7 @@ void Config::ReadValues() {
Settings::values.enable_audio_stretching =
sdl2_config->GetBoolean("Audio", "enable_audio_stretching", true);
Settings::values.audio_device_id = sdl2_config->Get("Audio", "output_device", "auto");
- Settings::values.volume = sdl2_config->GetReal("Audio", "volume", 1);
+ Settings::values.volume = static_cast<float>(sdl2_config->GetReal("Audio", "volume", 1));
Settings::values.language_index = sdl2_config->GetInteger("System", "language_index", 1);