Browse Source

Fix GridMap erase Octans

(cherry picked from commit 4da4514b719cb3f5599774dbbfdde50d3ec89bfe)
Pitanov V.V 4 years ago
parent
commit
d3dab1d06c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gridmap/grid_map.cpp

+ 1 - 1
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();