summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-10-30 10:26:14 -0400
committerShadowNinja <shadowninja@minetest.net>2016-03-07 16:33:20 -0500
commitc4b7afed7ed12f8d5894c1a5dd15ea376af06da6 (patch)
treeb8ad6b5b7f87971ead306a71d0872c90f5df9471
parent8ae1e1f4d29342d5d95648f7be1c8fe7f36eda52 (diff)
downloadminetest-c4b7afed7ed12f8d5894c1a5dd15ea376af06da6.tar.gz
minetest-c4b7afed7ed12f8d5894c1a5dd15ea376af06da6.tar.bz2
minetest-c4b7afed7ed12f8d5894c1a5dd15ea376af06da6.zip
Fix SpatialAreaStore not freeing removed areas
-rw-r--r--src/util/areastore.cpp1
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 {