From fbcb264628e8ae52cb8cbf646baeaa054f11e2bb Mon Sep 17 00:00:00 2001 From: srliao <906239+srliao@users.noreply.github.com> Date: Mon, 22 Aug 2022 07:30:46 -0400 Subject: [PATCH] end sim in damage mode when no more action --- pkg/simulation/run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/simulation/run.go b/pkg/simulation/run.go index 00f4da480..24e83eb94 100644 --- a/pkg/simulation/run.go +++ b/pkg/simulation/run.go @@ -57,6 +57,8 @@ func (s *Simulation) Run() (Result, error) { break } } + //TODO: this may result in unexpected behaviour? but beats infinite loop when out of actions + stop = stop || s.noMoreActions } else { stop = s.C.F == f }