Skip to content

Commit

Permalink
Forget to declare a var in entitiesForComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamerfiend committed Apr 13, 2019
1 parent a9d6397 commit 9cad469
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ecs.kit
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ struct Engine {
if this.entitesToComponent.exists(type) {
var entitySet = this.entitesToComponent.get(type).unwrap();
var entityArray: Array[Ptr[Entity]] = Array.new(entitySet.length);
var i = 0;
for key in entitySet{
entityArray[i] = this.entities.get(key).unwrap();
i++;
}
}
}
Expand Down

0 comments on commit 9cad469

Please sign in to comment.