Fix GridMap erase Octans

(cherry picked from commit 4da4514b71)
This commit is contained in:
Pitanov V.V 2021-07-02 03:26:26 +10:00 committed by Rémi Verschelde
parent cd64bcdae5
commit d3dab1d06c
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();