Decompile fn_19384 (CNaviData::CollectLinksTo)

Batch #16249 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_19384 CNaviData::CollectLinksTo: 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-10 15:51:47 +00:00
commit 14f8d8b32f

View file

@ -1068,15 +1068,16 @@ int NaviDataEntry::GetCost() const {
__declspec(noinline) bool CNaviData::CollectLinksTo(CNaviInfo* target, std::vector<CNavi_Link*>* out) {
out->clear();
for (auto info = this->destinations.begin(); info != this->destinations.end(); ++info) {
for (auto link = (*info)->LinksBegin(); link != (*info)->LinksEnd(); ++link) {
std::vector<CNavi_Link*>::iterator link;
for (link = (*info)->LinksBegin(); link != (*info)->LinksEnd(); ++link) {
if ((*link)->GetLinkedInfo() == target) {
out->push_back(*link);
}
}
}
for (auto link = this->objects.begin(); link != this->objects.end(); ++link) {
if ((*link)->GetLinkedInfo() == target) {
out->push_back(*link);
for (auto& link : this->objects) {
if (link->GetLinkedInfo() == target) {
out->push_back(link);
}
}
return out->size() != 0;