mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 23:03:46 +01:00
Fix SpatialAreaStore not freeing removed areas
This commit is contained in:
parent
8ae1e1f4d2
commit
c4b7afed7e
@ -275,6 +275,7 @@ bool SpatialAreaStore::removeArea(u32 id)
|
|||||||
Area *a = &itr->second;
|
Area *a = &itr->second;
|
||||||
bool result = m_tree->deleteData(get_spatial_region(a->minedge,
|
bool result = m_tree->deleteData(get_spatial_region(a->minedge,
|
||||||
a->maxedge), id);
|
a->maxedge), id);
|
||||||
|
areas_map.erase(itr);
|
||||||
invalidateCache();
|
invalidateCache();
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user