diff options
Diffstat (limited to 'world.c')
-rw-r--r-- | world.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -29,12 +29,15 @@ Entity new_entity(World* world) { world->bitmask[e] = 0; + world->gmemory--; + return e; } void destroy_entity(World* world, Entity e) { world->recycle_bin[world->recycle_bin_count++] = e; world->bitmask[e] = 0; + world->gmemory++; } void add_components(World* world, Entity e, CType bits) { |