From bdd504eb6797848d154527dc5e65a35773870792 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 29 Oct 2026 03:02:55 +0000 Subject: [PATCH] Decompile fn_19370 (NaviDataEntry::Reset) Batch #2060 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review. - fn_19370 NaviDataEntry::Reset: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/NavigationManager.h | 2 ++ Source/Contents/NavigationSource.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/Source/Contents/NavigationManager.h b/Source/Contents/NavigationManager.h index d3a6066..1e211f3 100644 --- a/Source/Contents/NavigationManager.h +++ b/Source/Contents/NavigationManager.h @@ -31,6 +31,8 @@ struct NaviLink { }; struct NaviDataEntry { + void Reset(); + /* 0000 */ int previous; /* 0004 */ CNavi_Link* link; /* 0008 */ int cost; diff --git a/Source/Contents/NavigationSource.cpp b/Source/Contents/NavigationSource.cpp index b7f881e..1b28978 100644 --- a/Source/Contents/NavigationSource.cpp +++ b/Source/Contents/NavigationSource.cpp @@ -115,6 +115,14 @@ int CNavigationManager::SaveCurrentTarget() { CNaviData::CNaviData() : info(nullptr), cellX(0), cellY(0), range(50000) { } +// OFFSET: 0x00B88510 +// FUNCTION: fn_19370 +void NaviDataEntry::Reset() { + this->previous = -1; + this->link = nullptr; + this->cost = 0; +} + // OFFSET: 0x00B88530 // FUNCTION: fn_19371 CNaviData::~CNaviData() {