Skip to content

Commit

Permalink
end sim in damage mode when no more action
Browse files Browse the repository at this point in the history
  • Loading branch information
srliao committed Aug 22, 2022
1 parent eeaccfe commit fbcb264
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 fbcb264

Please sign in to comment.