diff --git a/app/ecs/ecs.js b/app/ecs/ecs.js index 06cf13d..70b4744 100644 --- a/app/ecs/ecs.js +++ b/app/ecs/ecs.js @@ -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) {