Fixed serialization bug with entity id
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user