From b9ff94f27533fdd5e4ae5bd5299615a85ecfcc5d Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Sun, 15 Nov 2020 19:59:31 -0800 Subject: [PATCH] Fix crash in krakow with a biking trip that should get converted to a walking trip, but isn't --- sim/src/trips.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sim/src/trips.rs b/sim/src/trips.rs index 32cf0ba3ec..e8652027a7 100644 --- a/sim/src/trips.rs +++ b/sim/src/trips.rs @@ -372,8 +372,9 @@ impl TripManager { end, constraints: PathConstraints::Bike, }; - let maybe_router = if req.start == req.end { - // TODO Convert to a walking trip! + let maybe_router = if req.start.lane() == req.end.lane() { + // TODO Convert to a walking trip! Ideally, do this earlier and convert the trip to + // walking, like schedule_trip does None } else { ctx.map