From 51b6a55ea66b47bfcf9ab2d7d6bef5cbbdc2076a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 21:12:50 +0000 Subject: [PATCH] Decompile fn_17865 (CPathFinder::~CPathFinder) Batch #12207 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_17865 CPathFinder::~CPathFinder: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, KWDev, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Pathfinding.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Pathfinding.cpp b/Source/Contents/Pathfinding.cpp index 5badd41a..1f152b8b 100644 --- a/Source/Contents/Pathfinding.cpp +++ b/Source/Contents/Pathfinding.cpp @@ -4,11 +4,11 @@ // OFFSET: 0x00AD85A0 // FUNCTION: fn_17865 CPathFinder::~CPathFinder() { - this->nodePool.clear(); + this->nodePool.erase(this->nodePool.begin(), this->nodePool.end()); this->Reset(); - for (auto& [name, cached] : this->attrCache) { - delete cached; + for (auto it = this->attrCache.begin(); it != this->attrCache.end(); ++it) { + delete it->second; } this->attrCache.clear();