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

@ -281,7 +281,7 @@ impl Column {
}
}
fn swap(&mut self, index1: usize, index2: usize) {
pub fn swap(&mut self, index1: usize, index2: usize) {
assert!(index1 < self.data.len() && index2 < self.data.len(), "Index out of bounds");
unsafe {