From af1f0cb451d027cf403ea5441ad7007d3e977e2d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 14:41:30 +0000 Subject: [PATCH] Decompile fn_03937 (CSession::SetOption) Batch #16105 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_03937 CSession::SetOption: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/ClientOptions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Client/ClientOptions.cpp b/Source/Client/ClientOptions.cpp index 450c51208..0e2c2175e 100644 --- a/Source/Client/ClientOptions.cpp +++ b/Source/Client/ClientOptions.cpp @@ -10,6 +10,6 @@ int CSession::GetOption(int id) const { // OFFSET: 0x005E7970 // FUNCTION: fn_03937 void CSession::SetOption(int id, int value, int extra) { - const std::uint64_t bits = static_cast(value) | (static_cast(extra) << 32); - this->m_options.Values()[id] = static_cast(bits); + std::int64_t& option = this->m_options.Values()[id]; + option = static_cast(static_cast(value) | (static_cast(static_cast(extra)) << 32)); }