fix: stale iterator
This commit is contained in:
parent
c8622c6814
commit
2b4c5f5a8e
|
@ -323,7 +323,7 @@ export default class Ecs {
|
|||
for (const componentName in removing) {
|
||||
this.Components[componentName].destroyMany(removing[componentName]);
|
||||
}
|
||||
this.reindex(unique.values());
|
||||
this.reindex(unique);
|
||||
}
|
||||
|
||||
static serialize(ecs, view) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user