mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Fix SpatialAreaStore not freeing removed areas
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user