rodecomp/Source/Contents/Pathfinding.cpp
ragnarok-clanker 51b6a55ea6 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).
2026-11-05 21:12:50 +00:00

27 lines
601 B
C++

#include "Contents/TerrainPathSearch.h"
#include "Resource/World/TerrainResource.h"
// OFFSET: 0x00AD85A0
// FUNCTION: fn_17865
CPathFinder::~CPathFinder() {
this->nodePool.erase(this->nodePool.begin(), this->nodePool.end());
this->Reset();
for (auto it = this->attrCache.begin(); it != this->attrCache.end(); ++it) {
delete it->second;
}
this->attrCache.clear();
}
// OFFSET: 0x00AD8DB0
// FUNCTION: fn_17872
int CPathFinder::Height() const {
return this->attr->height;
}
// OFFSET: 0x00AD8DC0
// FUNCTION: fn_17873
int CPathFinder::Width() const {
return this->attr->width;
}