From 98d6c46d2a76bf0e4bed15222f37755c27e1d3a9 Mon Sep 17 00:00:00 2001 From: Beq Date: Tue, 15 Mar 2022 18:24:34 +0000 Subject: [PATCH] Fix inconsistent type --- indra/newview/fsperfstats.cpp | 2 +- indra/newview/llviewercontrol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/fsperfstats.cpp b/indra/newview/fsperfstats.cpp index 1238bd786d..e01631be37 100644 --- a/indra/newview/fsperfstats.cpp +++ b/indra/newview/fsperfstats.cpp @@ -123,7 +123,7 @@ namespace FSPerfStats FSPerfStats::tunables.userImpostorDistanceTuningEnabled = gSavedSettings.getBOOL("FSAutoTuneImpostorByDistEnabled"); FSPerfStats::tunables.userFPSTuningStrategy = gSavedSettings.getU32("FSTuningFPSStrategy"); FSPerfStats::tunables.userTargetFPS = gSavedSettings.getU32("FSTargetFPS"); - FSPerfStats::tunables.userTargetReflections = gSavedSettings.getU32("FSUserTargetReflections"); + FSPerfStats::tunables.userTargetReflections = gSavedSettings.getS32("FSUserTargetReflections"); FSPerfStats::tunables.userAutoTuneEnabled = gSavedSettings.getBOOL("FSAutoTuneFPS"); FSPerfStats::tunables.userAutoTuneLock = gSavedSettings.getBOOL("FSAutoTuneLock"); // Note: The Max ART slider is logarithmic and thus we have an intermediate proxy value diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index 3ef82e5e26..0a412f983b 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -1127,7 +1127,7 @@ void handleUserTargetDrawDistanceChanged(const LLSD& newValue) void handleUserTargetReflectionsChanged(const LLSD& newValue) { - const auto newval = gSavedSettings.getF32("FSUserTargetReflections"); + const auto newval = gSavedSettings.getS32("FSUserTargetReflections"); FSPerfStats::tunables.userTargetReflections = newval; }