diff options
Diffstat (limited to 'world.c')
-rw-r--r-- | world.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |