summaryrefslogtreecommitdiff
path: root/engine/Game.ts
diff options
context:
space:
mode:
Diffstat (limited to 'engine/Game.ts')
-rw-r--r--engine/Game.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/Game.ts b/engine/Game.ts
index c2a2c4f..3682fbd 100644
--- a/engine/Game.ts
+++ b/engine/Game.ts
@@ -55,6 +55,7 @@ export class Game {
const dt = timeStamp - this.lastTimeStamp;
this.lastTimeStamp = timeStamp;
+ // rebuild the Component -> { Entity } map
this.componentEntities.clear();
this.entities.forEach((entity) =>
entity.getComponents().forEach((component) => {