Skip to content

Commit

Permalink
Engine doesn't use EntitySystem iterator(), fixes #209
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaltares committed Jan 22, 2016
1 parent 3a96911 commit 6a99281
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ashley/src/com/badlogic/ashley/core/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ public void update(float deltaTime){
}

updating = true;
for (EntitySystem system : systemManager.getSystems()) {
ImmutableArray<EntitySystem> systems = systemManager.getSystems();
for (int i = 0; i < systems.size(); ++i) {
EntitySystem system = systems.get(i);

if (system.checkProcessing()) {
system.update(deltaTime);
}
Expand Down

0 comments on commit 6a99281

Please sign in to comment.