diff --git a/openlr/score_candidate_paths_getter.cpp b/openlr/score_candidate_paths_getter.cpp index 5491163277..2c08af1f81 100644 --- a/openlr/score_candidate_paths_getter.cpp +++ b/openlr/score_candidate_paths_getter.cpp @@ -71,7 +71,7 @@ bool ScoreCandidatePathsGetter::Link::IsJunctionInPath(geometry::PointWithAltitu { for (auto * l = this; l; l = l->m_parent.get()) { - if (l->m_edge.GetEndJunction() == j) + if (l->m_edge.GetEndJunction().GetPoint() == j.GetPoint()) { LOG(LDEBUG, ("A loop detected, skipping...")); return true;