From 656d04325a478f7cdb30ebc4e3b037bb5d363a6f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 12:20:23 +0000 Subject: [PATCH] Decompile fn_24238 (CSession::ResolvePendingActorName) Batch #16994 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_24238 CSession::ResolvePendingActorName: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Session/SessionState.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Client/Session/SessionState.cpp b/Source/Client/Session/SessionState.cpp index 1b30f7115..3831730c2 100644 --- a/Source/Client/Session/SessionState.cpp +++ b/Source/Client/Session/SessionState.cpp @@ -46,6 +46,11 @@ constexpr int LUA_TTABLE = 5; #include #include +using PendingActorNameTree = std::_Tree, std::allocator, false>>; +extern template std::_Tree_find_result*> +PendingActorNameTree::_Find_lower_bound(const std::uint32_t&) const; + struct SkillDelayField { int type; const char* name; @@ -345,7 +350,7 @@ void CSession::ResolvePendingActorName(std::uint32_t id, const char* name) { return; } - if (this->pendingActorNames.find(id) == this->pendingActorNames.end()) { + if (this->pendingActorNames.end() == this->pendingActorNames.find(id)) { return; }