Make sure GetNext does not get zero distance

This commit is contained in:
nsubiron 2019-03-25 21:05:23 +01:00
parent 5acf722799
commit 5d4dfca138
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ namespace road {
// If after subtracting the distance we are still in the same lane, return
// same waypoint with the extra distance.
if (distance < remaining_lane_length) {
if (distance <= remaining_lane_length) {
Waypoint result = waypoint;
result.s += signed_distance;
return { result };