Fix SpatialAreaStore not freeing removed areas

stable-0.4
ShadowNinja 2015-10-30 10:26:14 -04:00
parent 8ae1e1f4d2
commit c4b7afed7e
1 changed files with 1 additions and 0 deletions

View File

@ -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 {