Decompile 2 functions in Source/Contents/NavigationSource.cpp

Batch #12388 by cremane: 1 byte-identical, 1 confirmed by peer review.

- fn_19429 CNaviInfo::~CNaviInfo: byte-identical
- fn_19575 CNavigationManager::ClearNodePaths: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-05 14:35:34 +00:00
commit be25f25660

View file

@ -164,27 +164,27 @@ CNaviInfo::~CNaviInfo() {
this->cellX = 0;
this->cellY = 0;
for (CNavi_Object*& npc : this->npcs) {
if (npc != nullptr) {
delete npc;
for (std::vector<CNavi_Object*>::iterator it = this->npcs.begin(); it != this->npcs.end(); ++it) {
if (*it != nullptr) {
delete *it;
}
npc = nullptr;
*it = nullptr;
}
this->npcs.clear();
for (CNavi_Object*& mob : this->mobs) {
if (mob != nullptr) {
delete mob;
for (std::vector<CNavi_Object*>::iterator it = this->mobs.begin(); it != this->mobs.end(); ++it) {
if (*it != nullptr) {
delete *it;
}
mob = nullptr;
*it = nullptr;
}
this->mobs.clear();
for (CNavi_Link*& link : this->links) {
if (link != nullptr) {
delete link;
for (std::vector<CNavi_Link*>::iterator it = this->links.begin(); it != this->links.end(); ++it) {
if (*it != nullptr) {
delete *it;
}
link = nullptr;
*it = nullptr;
}
this->links.clear();
}
@ -257,7 +257,7 @@ void CNavigationManager::ClearNodePaths() {
for (std::size_t i = 0; i < this->nodePaths.size(); ++i) {
this->nodePaths[i].clear();
}
this->nodePaths.erase(this->nodePaths.begin(), this->nodePaths.end());
this->nodePaths.clear();
}
// OFFSET: 0x00B961A0