diff --git a/src/ecs/entity_index.rs b/src/ecs/entity_index.rs index f77d67c..303b6e7 100644 --- a/src/ecs/entity_index.rs +++ b/src/ecs/entity_index.rs @@ -58,8 +58,10 @@ pub struct EntityIndex { } impl EntityIndex { + pub const EMPTY: EntityIndex = Self::new(); + #[must_use] - pub fn new() -> Self { + pub const fn new() -> Self { Self { dense: Vec::new(), alive_count: 0,