summaryrefslogtreecommitdiff
path: root/src/scripts/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/controllers')
-rw-r--r--src/scripts/controllers/simulation/statecache.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripts/controllers/simulation/statecache.ts b/src/scripts/controllers/simulation/statecache.ts
index 19fe0d8f..092bfe32 100644
--- a/src/scripts/controllers/simulation/statecache.ts
+++ b/src/scripts/controllers/simulation/statecache.ts
@@ -94,10 +94,10 @@ export class StateCache {
for (let i = 1; i <= this.lastCachedTick; i++) {
this.updateTasksForNewTick(i);
- }
- // Update chart cache
- this.simulationController.chartController.tickUpdated(tick);
+ // Update chart cache
+ this.simulationController.chartController.tickUpdated(i);
+ }
if (!this.cacheBlock && this.lastCachedTick - this.simulationController.currentTick <= 0) {
this.cacheBlock = true;