fix: iteration
This commit is contained in:
parent
8ce44024e6
commit
0b86000d04
|
@ -25,8 +25,9 @@ export default class EntityListView extends Container {
|
|||
}
|
||||
|
||||
renderTick(elapsed) {
|
||||
for (let i = 0; i < this.entityList.entities.length; i++) {
|
||||
this.entityList.entities[i].renderTick(elapsed);
|
||||
const entities = Object.values(this.entityList.entities);
|
||||
for (let i = 0; i < entities.length; i++) {
|
||||
entities[i].renderTick(elapsed);
|
||||
}
|
||||
super.renderTick(elapsed);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user