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:
parent
8ba0ab3bff
commit
14f8d8b32f
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue