From 66462bb4e93272bcbf58e9a9ecd6b17e98a7cddc Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 13:49:11 +0000 Subject: [PATCH] Decompile fn_24158 (CSession::GetBodyStyle) Batch #16958 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_24158 CSession::GetBodyStyle: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Session/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Client/Session/Session.cpp b/Source/Client/Session/Session.cpp index 3f7ac9f90..94ea259cf 100644 --- a/Source/Client/Session/Session.cpp +++ b/Source/Client/Session/Session.cpp @@ -1908,7 +1908,7 @@ bool CSession::IsPartyRecommendTarget(std::uint32_t aid) { // OFFSET: 0x00E2F710 // FUNCTION: fn_24158 int CSession::GetBodyStyle(int job, int style, int renderJob) { - if (style >= 2 || static_cast(renderJob - JT_RUNE_KNIGHT_2ND) < JT_SECOND_JOB_END - JT_RUNE_KNIGHT_2ND) { + if (style >= 2 || static_cast(renderJob - JT_RUNE_KNIGHT_2ND) <= JT_SECOND_JOB_END - JT_RUNE_KNIGHT_2ND - 1) { return style; }