Fixed not returning valid RoadMarks

This commit is contained in:
Marc Garcia Puig 2019-03-27 16:05:50 +01:00
parent 37110043cd
commit 7b97f11959
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();
}