summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-30 06:49:05 +0200
committerGitHub <noreply@github.com>2021-04-30 06:49:05 +0200
commitbea6fca9a1ea2adf6950518458c5b69892e0c9a2 (patch)
tree71119d4d8f61183e00d6bad0ff6768391f0eb701
parentMerge pull request #6259 from Morph1984/main-conv (diff)
parentyuzu: config: Silence narrowing conversion warning on MSVC (diff)
downloadyuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.tar
yuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.tar.gz
yuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.tar.bz2
yuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.tar.lz
yuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.tar.xz
yuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.tar.zst
yuzu-bea6fca9a1ea2adf6950518458c5b69892e0c9a2.zip
-rw-r--r--src/yuzu/configuration/config.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index d1b8c4fc9..e80a3df77 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -863,8 +863,7 @@ void Config::ReadSystemValues() {
Settings::values.rng_seed.SetGlobal(rng_seed_global);
if (global || !rng_seed_global) {
if (rng_seed_enabled) {
- Settings::values.rng_seed.SetValue(
- ReadSetting(QStringLiteral("rng_seed"), 0).toULongLong());
+ Settings::values.rng_seed.SetValue(ReadSetting(QStringLiteral("rng_seed"), 0).toUInt());
} else {
Settings::values.rng_seed.SetValue(std::nullopt);
}