mirror of
https://github.com/lisk77/comet.git
synced 2025-10-25 06:18:49 +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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue