fix: stale iterator

This commit is contained in:
cha0s 2024-06-27 10:17:04 -05:00
parent c8622c6814
commit 2b4c5f5a8e

View File

@ -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) {