diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/areastore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/areastore.cpp b/src/util/areastore.cpp index fdd4d7b79..357ce37f0 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 { |