From fecfb8fd5d5c2e04d8f5a82de5b5c4a218d6f53e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 21:28:20 +0000 Subject: [PATCH] Decompile 9 functions in Source/Contents/Items/JobCodeForItem.cpp Batch #17325 by eAthena: 9 byte-identical, 0 confirmed by peer review. - fn_06421 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06422 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06423 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06424 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06425 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06426 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06427 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06428 CJobCodeForItem::AddJobCodeFromGroups: byte-identical - fn_06429 CJobCodeForItem::AddJobCodeFromGroups: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Items/JobCodeForItem.cpp | 27 ++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Source/Contents/Items/JobCodeForItem.cpp b/Source/Contents/Items/JobCodeForItem.cpp index 70e70b511..fe634eae5 100644 --- a/Source/Contents/Items/JobCodeForItem.cpp +++ b/Source/Contents/Items/JobCodeForItem.cpp @@ -24,21 +24,22 @@ template void CJobCodeForItem::AddJobCodeFromGroups(unsigned long code, Groups... groups) { std::set groupSet = {static_cast(groups)...}; - if (!groupSet.empty()) { - std::set jobs; - for (const unsigned int& group : groupSet) { - auto groupIt = this->m_jobGroups.find(group); - if (this->m_jobGroups.end() != groupIt) { - jobs.merge(std::set(groupIt->second)); - } + if (groupSet.empty()) { + return; + } + std::set jobs; + for (const unsigned int& group : groupSet) { + auto groupIt = this->m_jobGroups.find(group); + if (this->m_jobGroups.end() != groupIt) { + jobs.merge(std::set(groupIt->second)); } + } - auto it = this->m_jobCodes.find(code); - if (this->m_jobCodes.end() == it) { - this->m_jobCodes[code] = jobs; - } else { - it->second.merge(jobs); - } + auto it = this->m_jobCodes.find(code); + if (this->m_jobCodes.end() == it) { + this->m_jobCodes[code] = jobs; + } else { + it->second.merge(jobs); } }