Skip to content

Commit 3345250

Browse files
committed
core: pathfinding: fix missing waypoints in edge cases
Signed-off-by: Eloi Charpentier <eloi.charpentier.42@gmail.com>
1 parent 9314f35 commit 3345250

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/kotlin/fr/sncf/osrd/graph/Pathfinding.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ class Pathfinding<NodeT : Any, EdgeT : Any, OffsetType>(
238238
targetsOnEdges[newNReachedTargets]
239239
.apply(step.range.edge)
240240
.contains(EdgeLocation(step.range.edge, step.range.end))
241-
) newNReachedTargets++
241+
) {
242+
newNReachedTargets++
243+
stepTargets.add(EdgeLocation(step.range.edge, step.range.end))
244+
}
242245

243246
registerStep(
244247
newRange,

0 commit comments

Comments
 (0)