fixes a broken assertion

This commit is contained in:
Moritz Kobitzsch 2016-03-17 10:46:07 +01:00 committed by Patrick Niklaus
parent d7dd6acd9d
commit ac9a4d1e0d

View File

@ -20,7 +20,7 @@ StepManeuver stepManeuverFromGeometry(extractor::guidance::TurnInstruction instr
{ {
auto turn_index = leg_geometry.BackIndex(segment_index); auto turn_index = leg_geometry.BackIndex(segment_index);
BOOST_ASSERT(turn_index > 0); BOOST_ASSERT(turn_index > 0);
BOOST_ASSERT(turn_index < leg_geometry.locations.size() - 1); BOOST_ASSERT(turn_index < leg_geometry.locations.size());
// TODO chose a bigger look-a-head to smooth complex geometry // TODO chose a bigger look-a-head to smooth complex geometry
const auto pre_turn_coordinate = leg_geometry.locations[turn_index - 1]; const auto pre_turn_coordinate = leg_geometry.locations[turn_index - 1];