Decompile fn_45558 (CPlayerSkillBundle::RevertLevelChange)

Batch #16238 by kyoshi: 0 byte-identical, 1 confirmed by peer review.

- fn_45558 CPlayerSkillBundle::RevertLevelChange: logic confirmed by peer review

Peer-reviewed-by: Yommy, youko, Toshiro
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 16:39:05 +00:00
commit ecfed43ca2

View file

@ -390,6 +390,16 @@ bool IsIndexedSkill(int id) {
}
// OFFSET: 0x007719D0
// FUNCTION: fn_45558
void CPlayerSkillBundle::RevertLevelChange(const CSkillInfo& current, CSkillInfo& value) {
const auto entry = this->levelChanges.find(value.id);
if (entry != this->levelChanges.end()) {
value.level = entry->second.previous;
if (current.level == entry->second.target) {
this->removals.push_back(current.id);
}
}
}
// OFFSET: 0x00771A50
// FUNCTION: fn_45559