Fixed not returning valid RoadMarks
This commit is contained in:
parent
37110043cd
commit
7b97f11959
|
@ -89,7 +89,7 @@ namespace client {
|
|||
}
|
||||
|
||||
road::element::WaypointInfoRoadMark::LaneChange Waypoint::GetLaneChange() const {
|
||||
using lane_change_type = road::element::WaypointInfoRoadMark::LaneChange;
|
||||
using lane_change_type = road::element::WaypointInfoRoadMark::LaneChange;
|
||||
|
||||
const auto lane_change_right_info = _mark_record.first;
|
||||
lane_change_type c_right;
|
||||
|
|
|
@ -57,7 +57,7 @@ template <typename T>
|
|||
static boost::python::object OptionalToPythonObject(const T opt) {
|
||||
namespace py = boost::python;
|
||||
if (opt.has_value()) {
|
||||
py::object(opt.value());
|
||||
return py::object(opt.value());
|
||||
}
|
||||
return py::object();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue