Skip to content
Snippets Groups Projects
Commit c4b7afed authored by ShadowNinja's avatar ShadowNinja
Browse files

Fix SpatialAreaStore not freeing removed areas

parent 8ae1e1f4
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment