Confirm fn_08150 (RuneSetData::IsRewardStep)

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

- fn_08150 RuneSetData::IsRewardStep: logic confirmed by peer review (already on main)

Peer-reviewed-by: kyoshi, cremane, bibinir
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-12 16:55:46 +00:00
commit 51c4254ab0

View file

@ -164,11 +164,13 @@ void CRuneSystemMgr::Destroy() {
// OFFSET: 0x00766A30
// FUNCTION: fn_08116
int RuneSetData::FindLastReward(int count) const {
if (count <= 7) {
for (int step = count - 1; step > 0; --step) {
if (0 != this->m_reward.values[step]) {
return step;
}
if (count > 7) {
return -1;
}
for (int step = count - 1; step > 0; --step) {
if (0 != this->m_reward.values[step]) {
return step;
}
}