diff --git a/core/entity.jai b/core/entity.jai index 4139808..c3c582e 100644 --- a/core/entity.jai +++ b/core/entity.jai @@ -53,7 +53,7 @@ Renderable :: struct { MAX_CHILDREN :: 16; Entity :: struct { - id: Entity_Id; @Hide + id: Entity_Id; @Hide @DontSerialize type : Type; enabled: bool = true; diff --git a/core/scene.jai b/core/scene.jai index 3f97896..d5e185c 100644 --- a/core/scene.jai +++ b/core/scene.jai @@ -180,6 +180,7 @@ register_entity :: (scene: *Scene, entity: *Entity, id: Entity_Id = -1) { entity.id = next_entity_id; next_entity_id += 1; } + array_add(*scene.entities, entity); #if NETWORKING {