static void delete_sector(TerrainSector *sector, Terrain *terrain)
{
- tree_clr(§or->chunks, (void *) &delete_chunk, terrain, NULL, 0);
+ tree_clr(§or->chunks, &delete_chunk, terrain, NULL, 0);
pthread_rwlock_destroy(§or->lock);
free(sector);
}
void terrain_delete(Terrain *terrain)
{
- tree_clr(&terrain->sectors, (void *) &delete_sector, terrain, NULL, 0);
+ tree_clr(&terrain->sectors, &delete_sector, terrain, NULL, 0);
pthread_rwlock_destroy(&terrain->lock);
pthread_rwlock_destroy(&terrain->cache_lock);
free(terrain);