From 8f963d3b4925c416222c3d153efd771efffee150 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 8 May 2023 21:09:34 +1000 Subject: Fix a bug with the world not being initialised. --- world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'world.c') diff --git a/world.c b/world.c index 3ee369d..a84aac6 100644 --- a/world.c +++ b/world.c @@ -3,7 +3,7 @@ #include "error.h" void init_world(World* world) { - int i, s = sizeof world; + int i, s = sizeof *world; for (i = 0; i < s; i++) { ((char*)world)[i] = 0; } -- cgit v1.2.3-54-g00ecf