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

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