From 8302597376c2cddc06de8af4ef73cc0f27527d9a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 12:54:14 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Navigation/NavigationSource.cpp, Source/Contents/Guild/GuildInfo.cpp Batch #17029 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_19364 CNaviData::CNaviData: logic confirmed by peer review - fn_18041 GuildInfo::UpdateMemberExpRatios: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Guild/GuildInfo.cpp | 6 +++--- Source/Contents/Navigation/NavigationSource.cpp | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Guild/GuildInfo.cpp b/Source/Contents/Guild/GuildInfo.cpp index b65117554..2eb685c11 100644 --- a/Source/Contents/Guild/GuildInfo.cpp +++ b/Source/Contents/Guild/GuildInfo.cpp @@ -178,10 +178,10 @@ void GuildInfo::UpdateMemberExpRatios() { } for (auto it = this->m_members.begin(); it != this->m_members.end(); ++it) { - if (total == 0.0) { - it->expRatio = 0.0f; - } else { + if (total != 0.0) { it->expRatio = static_cast(it->exp) * 100.0f / static_cast(total); + } else { + it->expRatio = 0.0f; } it->positionName = this->m_positions[it->positionId]; } diff --git a/Source/Contents/Navigation/NavigationSource.cpp b/Source/Contents/Navigation/NavigationSource.cpp index 1f6a7d2f4..2dd9790ec 100644 --- a/Source/Contents/Navigation/NavigationSource.cpp +++ b/Source/Contents/Navigation/NavigationSource.cpp @@ -125,7 +125,11 @@ NaviDataEntry::NaviDataEntry() : previous(-1), link(nullptr), cost(0) { // OFFSET: 0x00B880D0 // FUNCTION: fn_19364 -CNaviData::CNaviData() : info(nullptr), cellX(0), cellY(0), range(50000) { +CNaviData::CNaviData() { + this->info = nullptr; + this->cellX = 0; + this->cellY = 0; + this->range = 50000; } // OFFSET: 0x00B88510