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:
parent
a609d53310
commit
4656034b0d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue