Decompile fn_19394 (CNaviData::ResetLinkDepths)

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

- fn_19394 CNaviData::ResetLinkDepths: logic confirmed by peer review

Peer-reviewed-by: gordaoprogramas, Tanke, codeplay
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-06 13:12:03 +00:00
commit 449ea65a5f

View file

@ -180,9 +180,9 @@ done:
// OFFSET: 0x00B8A720
// FUNCTION: fn_19394
void CNaviData::ResetLinkDepths() {
for (CNaviInfo* destination : this->destinations) {
std::vector<CNavi_Link*>::iterator end = destination->LinksEnd();
for (std::vector<CNavi_Link*>::iterator it = destination->LinksBegin(); it != end; ++it) {
for (CNaviInfo*& destination : this->destinations) {
std::vector<CNavi_Link*>::const_iterator end = destination->LinksEnd();
for (std::vector<CNavi_Link*>::const_iterator it = destination->LinksBegin(); it != end; ++it) {
(*it)->SetDepth(-1);
}
}