From 3ca998b08e5114b6d3d8f4968c69732f15a8cfe4 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Sat, 23 Nov 2019 20:27:00 -0800 Subject: [PATCH] properly fix the crashing border intersection --- sim/src/mechanics/intersection.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sim/src/mechanics/intersection.rs b/sim/src/mechanics/intersection.rs index f6726f0df7..c410e0d1e7 100644 --- a/sim/src/mechanics/intersection.rs +++ b/sim/src/mechanics/intersection.rs @@ -156,8 +156,7 @@ impl IntersectionSimState { } } } else { - return; - //unreachable!() + assert!(map.get_i(i).is_border()); }; for req in protected {