Skip to content

Commit

Permalink
Fix SpatialAreaStore not freeing removed areas
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Mar 7, 2016
1 parent 8ae1e1f commit c4b7afe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/areastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c4b7afe

Please sign in to comment.