From dc2de404c9e01eb59424cd43449d9969bd99740a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 10:29:49 +0000 Subject: [PATCH] Decompile fn_17860 (CPathFinder::CPathFinder) Batch #1332 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_17860 CPathFinder::CPathFinder: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/Contents/TerrainPathSearch.cpp | 5 +++++ Source/Contents/TerrainPathSearch.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Contents/TerrainPathSearch.cpp b/Source/Contents/TerrainPathSearch.cpp index 5157e6ef..e6fe16cc 100644 --- a/Source/Contents/TerrainPathSearch.cpp +++ b/Source/Contents/TerrainPathSearch.cpp @@ -1,5 +1,10 @@ #include "Contents/TerrainPathSearch.h" +// OFFSET: 0x00AD7E70 +// FUNCTION: fn_17860 +CPathFinder::CPathFinder() : useNodePool(false) { +} + // OFFSET: 0x00AD9840 // FUNCTION: fn_17885 void CPathFinder::Reset() { diff --git a/Source/Contents/TerrainPathSearch.h b/Source/Contents/TerrainPathSearch.h index 222d2e65..53891d86 100644 --- a/Source/Contents/TerrainPathSearch.h +++ b/Source/Contents/TerrainPathSearch.h @@ -26,12 +26,14 @@ public: class CPathFinder { public: + CPathFinder(); + /* 0000 */ C3dAttr* attr; /* 0004 */ int destinationX; /* 0008 */ int destinationY; /* 000C */ int nodeCount; /* 0010 */ MovementPathNode nodes[150]; - /* 1078 */ std::uint8_t unknown_1078[8]; + /* 1078 */ std::map unknown_1078; /* 1080 */ bool useNodePool; /* 1084 */ std::vector nodePool; /* 1090 */ std::map nodeMap;