diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc index bf6fcb187..92ddc657e 100644 --- a/src/algorithms/PVT/libs/rtklib_solver.cc +++ b/src/algorithms/PVT/libs/rtklib_solver.cc @@ -902,8 +902,7 @@ bool Rtklib_Solver::get_PVT(const std::map &gnss_observables_ } } - std::vector azel; - azel.reserve(used_sats * 2); + std::vector azel(used_sats * 2); int index_aux = 0; for (auto &i : rtk_.ssat) {