diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-01-27 09:46:38 +0100 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-01-27 09:46:38 +0100 |
| commit | b462c9183ec7c2e41f14daad49f03d8afaa4ec59 (patch) | |
| tree | 5af172c03599f7c680cd32205eab5329b841c85c | |
| parent | bf6df85449fa3f2df98fabefed9d7e46be066c42 (diff) | |
Fix graph view in building mode
| -rw-r--r-- | src/scripts/controllers/simulation/statecache.ts | 6 |
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; |
