Decompile fn_08129 (CRuneSystemMgr::GetGradeFailValue)

Batch #13030 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_08129 CRuneSystemMgr::GetGradeFailValue: logic confirmed by peer review

Peer-reviewed-by: gordaoprogramas, Toshiro, codeplay
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-06 12:50:53 +00:00
commit d9fe373a0a

View file

@ -290,7 +290,7 @@ int CRuneSystemMgr::GetCurSlotCount() const {
int CRuneSystemMgr::GetGradeFailValue(RuneSetData* runeSet) {
if (runeSet) {
const auto found = this->m_gradeFailTypes.find(runeSet->m_gradeFailType);
if (found != this->m_gradeFailTypes.end() && static_cast<unsigned int>(runeSet->m_grade) < found->second.size()) {
if (this->m_gradeFailTypes.end() != found && static_cast<unsigned int>(runeSet->m_grade) < found->second.size()) {
return found->second[runeSet->m_grade];
}
}