diff --git a/core/src/com/me/common/ecs/EntitySystem.java b/core/src/com/me/common/ecs/EntitySystem.java index 38ec1e6..a5b4170 100644 --- a/core/src/com/me/common/ecs/EntitySystem.java +++ b/core/src/com/me/common/ecs/EntitySystem.java @@ -27,8 +27,11 @@ public abstract class EntitySystem extends BaseSystem { } public void process(float dt) { - for (int i = 0, n = getEntities().size; i < n; i++) { - processEntity(entities.get(i), dt); + for (int i = 0, n = entities.size; i < n; i++) { + Entity entity = entities.items[i]; + if (!entity.removed && entity.active) { + processEntity(entity, dt); + } } }