From 738012143f0235f035dc7fffa27b6cd5e42caa86 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 04:33:03 +0000 Subject: [PATCH] Decompile fn_23822 (CSession::FindTopRecords6144) Batch #13046 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_23822 CSession::FindTopRecords6144: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Skills/ClientSkills.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Contents/Skills/ClientSkills.cpp b/Source/Contents/Skills/ClientSkills.cpp index cd10d8ea..7743ad50 100644 --- a/Source/Contents/Skills/ClientSkills.cpp +++ b/Source/Contents/Skills/ClientSkills.cpp @@ -1024,17 +1024,17 @@ ITEM_INFO CSession::GetItem3500(int index) const { void CSession::FindTopRecords6144(int* second, int* first) { int bestValue = -1; int secondValue; - for (const auto& entry : this->unknown_6144) { - if (reinterpret_cast(&entry.second.unknown_0000)[1]) { - const int value = entry.second.unknown_002C; + for (auto it = this->unknown_6144.begin(); it != this->unknown_6144.end(); ++it) { + if (reinterpret_cast(&it->second.unknown_0000)[1]) { + const int value = it->second.unknown_002C; if (bestValue < value) { secondValue = bestValue; bestValue = value; *second = *first; - *first = entry.first; + *first = it->first; } else if (secondValue < value) { secondValue = value; - *second = entry.first; + *second = it->first; } } }