summaryrefslogtreecommitdiff
path: root/src/scripts/controllers/simulation/statecache.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-01-27 09:46:38 +0100
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-01-27 09:46:38 +0100
commitb462c9183ec7c2e41f14daad49f03d8afaa4ec59 (patch)
tree5af172c03599f7c680cd32205eab5329b841c85c /src/scripts/controllers/simulation/statecache.ts
parentbf6df85449fa3f2df98fabefed9d7e46be066c42 (diff)
Fix graph view in building mode
Diffstat (limited to 'src/scripts/controllers/simulation/statecache.ts')
-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;