make sure that the stopAtTargets property is applied

This commit is contained in:
Emma Broman
2020-04-07 16:43:55 +02:00
parent 66fbd34045
commit 9d10abcff3

View File

@@ -351,7 +351,8 @@ void AutoNavigationHandler::addSegment(Waypoint& waypoint, const Instruction* in
}
void AutoNavigationHandler::addStopDetails(const Instruction* ins) {
StopDetails stopEntry{ _stopAtTargetsPerDefault };
StopDetails stopEntry;
stopEntry.shouldStop = _stopAtTargetsPerDefault.value();
if (ins->stopAtTarget.has_value()) {
stopEntry.shouldStop = ins->stopAtTarget.value();