mirror of
https://github.com/lisk77/comet.git
synced 2025-10-23 21:38:50 +00:00
fix: weird bug in the ComponentStorage where due to the implementation of the SparseSet, components weren't correctly managed
This commit is contained in:
parent
cae678747f
commit
fae4e852fd
4 changed files with 33 additions and 51 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue