Correct the proper checking for left lane marking

This commit is contained in:
kbu 2020-04-21 18:28:19 +09:00 committed by bernat
parent 835dccd470
commit 9d66a06caf
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ namespace client {
}
boost::optional<road::element::LaneMarking> Waypoint::GetLeftLaneMarking() const {
if (_mark_record.first != nullptr) {
if (_mark_record.second != nullptr) {
return road::element::LaneMarking(*_mark_record.second);
}
return boost::optional<road::element::LaneMarking>{};