From 4da4514b719cb3f5599774dbbfdde50d3ec89bfe Mon Sep 17 00:00:00 2001 From: "Pitanov V.V" Date: Fri, 2 Jul 2021 03:26:26 +1000 Subject: Fix GridMap erase Octans --- modules/gridmap/grid_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gridmap') diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index c62e7acd62..e9134b32d9 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -780,7 +780,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(); -- cgit v1.2.3