aboutsummaryrefslogtreecommitdiff
path: root/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'world.c')
-rw-r--r--world.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/world.c b/world.c
index 920484c..39673d4 100644
--- a/world.c
+++ b/world.c
@@ -3,7 +3,10 @@
#include "error.h"
void init_world(World* world) {
- world->entity_count = 0;
+ int i, s = sizeof world;
+ for (i = 0; i < s; i++) {
+ ((char*)world)[i] = 0;
+ }
}
Entity new_entity(World* world) {