From d3dab1d06c2b776578053034997524d283889012 Mon Sep 17 00:00:00 2001 From: "Pitanov V.V" Date: Fri, 2 Jul 2021 03:26:26 +1000 Subject: [PATCH] Fix GridMap erase Octans (cherry picked from commit 4da4514b719cb3f5599774dbbfdde50d3ec89bfe) --- modules/gridmap/grid_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index a9c00636b82..b173e743eef 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -778,7 +778,7 @@ void GridMap::_update_octants_callback() { while (to_delete.front()) { octant_map.erase(to_delete.front()->get()); - to_delete.pop_back(); + to_delete.pop_front(); } _update_visibility();