fix(selectors): correctly initialize rawTotal
This commit is contained in:
parent
1a61cd1f1c
commit
c23b9c160a
1 changed files with 2 additions and 1 deletions
|
|
@ -179,7 +179,8 @@ double sum_fitness(const eoPop<EOT>& _pop)
|
|||
template <class EOT>
|
||||
double sum_fitness(const eoPop<EOT>& _pop, std::pair<double, double>& _minmax)
|
||||
{
|
||||
double rawTotal, scaledTotal;
|
||||
double rawTotal = 0;
|
||||
double scaledTotal;
|
||||
|
||||
typename eoPop<EOT>::const_iterator it = _pop.begin();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue