summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/roadstop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/roadstop.cpp b/src/roadstop.cpp
index 9547814b7..ce9bd62ee 100644
--- a/src/roadstop.cpp
+++ b/src/roadstop.cpp
@@ -289,7 +289,9 @@ void RoadStop::Entry::Leave(const RoadVehicle *rv)
*/
void RoadStop::Entry::Enter(const RoadVehicle *rv)
{
- assert(this->occupied < this->length);
+ /* we cannot assert on this->occupied < this->length because of the
+ * remote possibility that RVs are running through eachother when
+ * trying to prevention an infinite jam. */
this->occupied += rv->rcache.cached_veh_length;
}