Decompile fn_06467 (CJobCodeForItem::IsJobAllowed)

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

- fn_06467 CJobCodeForItem::IsJobAllowed: 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-11 14:28:22 +00:00
commit f6e76cb7a3
7 changed files with 47 additions and 39 deletions

View file

@ -434,10 +434,10 @@ bool CJobCodeForItem::IsJobAllowed(int job, unsigned long code) {
switch (code) {
case 0xFFFFE: {
auto group = this->m_jobGroups.find(0);
if (group == this->m_jobGroups.end()) {
return false;
if (group != this->m_jobGroups.end()) {
return group->second.end() == group->second.find(job);
}
return group->second.end() == group->second.find(job);
return false;
}
case 0xFFFFF:
return true;