diff --git a/src/engine/guidance/post_processing.cpp b/src/engine/guidance/post_processing.cpp index 9853080d7f7..8ba06e6ba69 100644 --- a/src/engine/guidance/post_processing.cpp +++ b/src/engine/guidance/post_processing.cpp @@ -1179,7 +1179,7 @@ std::vector buildIntersections(std::vector steps) // previous instruction. if (instruction.type == TurnType::EndOfRoad) { - BOOST_ASSERT(step_index > 0 && next_step_index < steps.size()); + BOOST_ASSERT(step_index > 0); const auto &previous_step = steps[last_valid_instruction]; if (previous_step.intersections.size() < MIN_END_OF_ROAD_INTERSECTIONS) step.maneuver.instruction.type = TurnType::Turn;