From 51c4254ab08dcb92f264684195a366146c9c4b2d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 16:55:46 +0000 Subject: [PATCH] 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). --- Source/Contents/RuneSystem/RuneSystem.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/Contents/RuneSystem/RuneSystem.cpp b/Source/Contents/RuneSystem/RuneSystem.cpp index 130cffce9..88eaf1643 100644 --- a/Source/Contents/RuneSystem/RuneSystem.cpp +++ b/Source/Contents/RuneSystem/RuneSystem.cpp @@ -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; } }