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<int>: byte-identical - fn_06422 CJobCodeForItem::AddJobCodeFromGroups<int,int>: byte-identical - fn_06423 CJobCodeForItem::AddJobCodeFromGroups<int,int,int>: byte-identical - fn_06424 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int>: byte-identical - fn_06425 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int>: byte-identical - fn_06426 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int,int>: byte-identical - fn_06427 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int,int,int>: byte-identical - fn_06428 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int,int,int,int,int>: byte-identical - fn_06429 CJobCodeForItem::AddJobCodeFromGroups<int,int,int,int,int,int,int,int,int,int,int>: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
e036f9eb73
commit
fecfb8fd5d
1 changed files with 14 additions and 13 deletions
|
|
@ -24,21 +24,22 @@
|
|||
template <typename... Groups>
|
||||
void CJobCodeForItem::AddJobCodeFromGroups(unsigned long code, Groups... groups) {
|
||||
std::set<unsigned int> groupSet = {static_cast<unsigned int>(groups)...};
|
||||
if (!groupSet.empty()) {
|
||||
std::set<int> jobs;
|
||||
for (const unsigned int& group : groupSet) {
|
||||
auto groupIt = this->m_jobGroups.find(group);
|
||||
if (this->m_jobGroups.end() != groupIt) {
|
||||
jobs.merge(std::set<int>(groupIt->second));
|
||||
}
|
||||
if (groupSet.empty()) {
|
||||
return;
|
||||
}
|
||||
std::set<int> jobs;
|
||||
for (const unsigned int& group : groupSet) {
|
||||
auto groupIt = this->m_jobGroups.find(group);
|
||||
if (this->m_jobGroups.end() != groupIt) {
|
||||
jobs.merge(std::set<int>(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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue