fix: weird bug in the ComponentStorage where due to the implementation of the SparseSet, components weren't correctly managed

This commit is contained in:
lisk77 2025-03-06 19:04:49 +01:00
parent cae678747f
commit fae4e852fd
4 changed files with 33 additions and 51 deletions

View file

@ -147,8 +147,8 @@ impl App {
self.input_manager.key_released(key)
}
pub fn new_entity(&mut self) -> u32 {
self.world.new_entity()
pub fn new_entity(&mut self) -> usize{
self.world.new_entity() as usize
}
pub fn delete_entity(&mut self, entity_id: usize) {