aboutsummaryrefslogtreecommitdiff
path: root/world.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-08 21:09:34 +1000
committerquou <quou@disroot.org>2023-05-08 21:09:34 +1000
commit8f963d3b4925c416222c3d153efd771efffee150 (patch)
tree9b04d343fbcc662b7fba43677e39d70e3e4bd571 /world.c
parent628d39f9b17667b00048bfdad1b7f104e32c17da (diff)
Fix a bug with the world not being initialised.
Diffstat (limited to 'world.c')
-rw-r--r--world.c2
1 files changed, 1 insertions, 1 deletions
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;
}