From 4656034b0d08ed51b2bfa6fea040f0710645bd53 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 11:57:40 +0000 Subject: [PATCH] Decompile fn_06428 (CJobCodeForItem::AddJobCodeFromGroups) Batch #15939 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_06428 CJobCodeForItem::AddJobCodeFromGroups: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/JobCodeForItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/JobCodeForItem.cpp b/Source/Contents/JobCodeForItem.cpp index 7fde763bb..17b5a566d 100644 --- a/Source/Contents/JobCodeForItem.cpp +++ b/Source/Contents/JobCodeForItem.cpp @@ -28,13 +28,13 @@ void CJobCodeForItem::AddJobCodeFromGroups(unsigned long code, Groups... groups) std::set jobs; for (const unsigned int& group : groupSet) { auto groupIt = this->m_jobGroups.find(group); - if (groupIt != this->m_jobGroups.end()) { + if (this->m_jobGroups.end() != groupIt) { jobs.merge(std::set(groupIt->second)); } } auto it = this->m_jobCodes.find(code); - if (it == this->m_jobCodes.end()) { + if (this->m_jobCodes.end() == it) { this->m_jobCodes[code] = jobs; } else { it->second.merge(jobs);