Skip to content

Commit

Permalink
Merge pull request #833 from srliao/srl-2022-08-22-end-sim-when-no-mo…
Browse files Browse the repository at this point in the history
…re-actions

end sim in damage mode when no more action
  • Loading branch information
srliao authored Aug 22, 2022
2 parents c45c84e + fbcb264 commit b3fbc32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/simulation/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b3fbc32

Please sign in to comment.