From e511e9c678eeb76906e75dbc92165e538d13546b Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 11 Dec 2025 22:10:52 -0500 Subject: ambient occlusion --- src/world.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/world.c') 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); -- cgit v1.2.3-freya