diff --git a/src/util/areastore.cpp b/src/util/areastore.cpp index fdd4d7b7..357ce37f 100644 --- a/src/util/areastore.cpp +++ b/src/util/areastore.cpp @@ -275,6 +275,7 @@ bool SpatialAreaStore::removeArea(u32 id) Area *a = &itr->second; bool result = m_tree->deleteData(get_spatial_region(a->minedge, a->maxedge), id); + areas_map.erase(itr); invalidateCache(); return result; } else {