summaryrefslogtreecommitdiff
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world.c b/src/world.c
index a53055d..0be9a85 100644
--- a/src/world.c
+++ b/src/world.c
@@ -110,10 +110,10 @@ void world_free(World *world)
int size = side * side * side;
world_lock(world);
for (int i = 0; i < size; i++) {
- RcChunk **entry = &world->chunks[i];
- if (entry == NULL)
+ RcChunk *rc_chunk = world->chunks[i];
+ if (rc_chunk == NULL)
continue;
- rcchunk_drop(*entry);
+ rcchunk_drop(rc_chunk);
}
free(world->chunks);
mtx_destroy(&world->lock);