fix broken assertion

This commit is contained in:
Moritz Kobitzsch
2016-06-28 08:33:20 +02:00
committed by Patrick Niklaus
parent 311b348d09
commit 6265b8fa77
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -1082,7 +1082,7 @@ std::vector<RouteStep> buildIntersections(std::vector<RouteStep> steps)
// previous instruction.
if (instruction.type == TurnType::EndOfRoad)
{
BOOST_ASSERT(step_index > 0 && step_index < step_index + 1 < steps.size());
BOOST_ASSERT(step_index > 0 && step_index + 1 < steps.size());
const auto &previous_step = steps[last_valid_instruction];
if (previous_step.intersections.size() < MIN_END_OF_ROAD_INTERSECTIONS)
step.maneuver.instruction.type = TurnType::Turn;