From 7b0d89d9d6d9231e89a17b4428d201ecf2a4cf95 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 10:39:12 +0000 Subject: [PATCH] Decompile 3 functions in Source/Contents/NavigationLink.cpp Batch #14447 by SapitoSucio: 0 byte-identical, 3 confirmed by peer review. - fn_19438 CNaviInfo::AddNpc: logic confirmed by peer review - fn_19439 CNaviInfo::AddLink: logic confirmed by peer review - fn_19440 CNaviInfo::AddMob: logic confirmed by peer review Peer-reviewed-by: Yommy, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/NavigationLink.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Source/Contents/NavigationLink.cpp b/Source/Contents/NavigationLink.cpp index 4a9160b4d..1fa0d36ab 100644 --- a/Source/Contents/NavigationLink.cpp +++ b/Source/Contents/NavigationLink.cpp @@ -82,33 +82,39 @@ void CNavi_Link::SetDepth(int depth) { // OFFSET: 0x00B8D9A0 // FUNCTION: fn_19438 bool CNaviInfo::AddNpc(CNavi_Object* npc) { + std::vector& npcs = this->npcs; + if (npc == nullptr) { return false; } - this->npcs.push_back(npc); + npcs.push_back(npc); return true; } // OFFSET: 0x00B8D9E0 // FUNCTION: fn_19439 bool CNaviInfo::AddLink(CNavi_Link* link) { + std::vector& links = this->links; + if (link == nullptr) { return false; } - this->links.push_back(link); + links.push_back(link); return true; } // OFFSET: 0x00B8DA20 // FUNCTION: fn_19440 bool CNaviInfo::AddMob(CNavi_Object* mob) { + std::vector& mobs = this->mobs; + if (mob == nullptr) { return false; } - this->mobs.push_back(mob); + mobs.push_back(mob); return true; }