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();