From 5fe93cdff5f2f22c6b65f83b22730f97039dc37d Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Fri, 20 Jun 2025 10:40:59 -0700 Subject: [PATCH] Empty engine timeline at beginning of run --- internal/simulation/engine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/simulation/engine.go b/internal/simulation/engine.go index 60e9100..0efb537 100644 --- a/internal/simulation/engine.go +++ b/internal/simulation/engine.go @@ -168,6 +168,8 @@ func NewEngineFromDesign(design design.Design, duration int, tickMs int) *Engine func (e *Engine) Run() { const tickMS = 100 currentTimeMs := 0 + // this probably isn't necessary but is here just in case + e.Timeline = e.Timeline[:0] for tick := 0; tick < e.Duration; tick++ { snapshot := TickSnapshot{