Decompile fn_06428 (CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int,int,int,int,int>)

Batch #15939 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_06428 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int,int,int,int,int>: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 11:57:40 +00:00
commit 4656034b0d

View file

@ -28,13 +28,13 @@ void CJobCodeForItem::AddJobCodeFromGroups(unsigned long code, Groups... groups)
std::set<int> 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<int>(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);