From b462c9183ec7c2e41f14daad49f03d8afaa4ec59 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 27 Jan 2017 09:46:38 +0100 Subject: Fix graph view in building mode --- src/scripts/controllers/simulation/statecache.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scripts') 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; -- cgit v1.2.3