mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
Merge pull request #305 from ddj116/set_num_runs_fix
Fixed indexing problem when reducing number of monte carlo runs
This commit is contained in:
commit
9e5383bac0
@ -108,8 +108,8 @@ void Trick::MonteCarlo::set_num_runs(unsigned int in_num_runs) {
|
||||
runs.push_back(new Trick::MonteRun(this->num_runs++));
|
||||
}
|
||||
while ( (this->num_runs > in_num_runs) && !runs.empty() ) {
|
||||
delete runs.front();
|
||||
runs.pop_front();
|
||||
delete runs.back();
|
||||
runs.pop_back();
|
||||
--this->num_runs;
|
||||
}
|
||||
update_actual_num_runs();
|
||||
|
Loading…
x
Reference in New Issue
Block a user