From 879896ff62f47ada46638127212a7c9d4bc896bf Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:10:06 -0400 Subject: [PATCH] Fixed TUNABLE_BASE_ADDRESS being incorrect. (#3441) --- src/services/tunables/tunables_service.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/tunables/tunables_service.hpp b/src/services/tunables/tunables_service.hpp index a48ba103..bfd2f413 100644 --- a/src/services/tunables/tunables_service.hpp +++ b/src/services/tunables/tunables_service.hpp @@ -6,7 +6,7 @@ namespace big { - constexpr int TUNABLE_BASE_ADDRESS = 0x40000; // This never changes + constexpr int TUNABLE_BASE_ADDRESS = 0x40001; // This never changes #pragma pack(push, 1) struct tunable_save_struct @@ -78,9 +78,9 @@ namespace big auto offset = it->second; if (offset > TUNABLE_BASE_ADDRESS) - return (offset - TUNABLE_BASE_ADDRESS) - 1; + return (offset - TUNABLE_BASE_ADDRESS); - return (TUNABLE_BASE_ADDRESS - offset) - 1; + return (TUNABLE_BASE_ADDRESS - offset); } return 0;