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{