From fbc78b9901016fa475253f2aaf4479f1e4b85356 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:08:48 +0000 Subject: [PATCH] Decompile fn_06315 (CGameSettingsMgr::FindOption) Batch #12714 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_06315 CGameSettingsMgr::FindOption: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Configuration/ServiceOptions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index 8deefeb0..0ac336b0 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -525,10 +525,10 @@ std::optional GameSettings::FindOption(int id) { while (option != this->options.end() && id != option->id) { ++option; } - if (option == this->options.end()) { - return std::nullopt; + if (option != this->options.end()) { + return &*option; } - return &*option; + return std::nullopt; } // OFFSET: 0x006C1070