From 931d7e6a3db44c8a28ddea1995a61b1180ec6603 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 07:22:38 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/PlayerNameDictionary.cpp Batch #14330 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_04258 CPlayerNameDictionary::Set: logic confirmed by peer review - fn_04262 CPlayerNameDictionary::Lookup: logic confirmed by peer review (already on main) Peer-reviewed-by: secret, KWDev, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/PlayerNameDictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Contents/PlayerNameDictionary.cpp b/Source/Contents/PlayerNameDictionary.cpp index 7ca4a5eb6..578bb0439 100644 --- a/Source/Contents/PlayerNameDictionary.cpp +++ b/Source/Contents/PlayerNameDictionary.cpp @@ -35,7 +35,7 @@ std::string CPlayerNameDictionary::Lookup(std::uint32_t id) { // OFFSET: 0x0060ABB0 // FUNCTION: fn_04258 void CPlayerNameDictionary::Set(std::uint32_t id, std::string name) { - this->m_names.insert_or_assign(id, Entry{std::move(name), timeGetTime()}); + this->m_names[id] = Entry{name, timeGetTime()}; const auto request = std::find_if(this->m_requests.begin(), this->m_requests.end(), [&](const Request& value) { return value.id == id; }); if (request != this->m_requests.end()) { this->m_requests.erase(request);