diff --git a/redeem/path_planner/Path.cpp b/redeem/path_planner/Path.cpp index fa626333..df9d64e2 100644 --- a/redeem/path_planner/Path.cpp +++ b/redeem/path_planner/Path.cpp @@ -95,7 +95,8 @@ void Path::zero() { for (auto& stepVector : steps) { - stepVector.clear(); + std::vector empty; + stepVector.swap(empty); } }