Added a missing test in the weak elitism
This commit is contained in:
parent
f81d92a0af
commit
746516a675
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ public:
|
||||||
_parents.sort();
|
_parents.sort();
|
||||||
EOT & eoLimit = _parents[elite-1];
|
EOT & eoLimit = _parents[elite-1];
|
||||||
unsigned index=0;
|
unsigned index=0;
|
||||||
while (temp[index++] > eoLimit)
|
while ( (temp[index++] > eoLimit) && (index < temp.size()) )
|
||||||
toSave++;
|
toSave++;
|
||||||
if (toSave)
|
if (toSave)
|
||||||
for (unsigned i=0; i<toSave; i++)
|
for (unsigned i=0; i<toSave; i++)
|
||||||
|
|
|
||||||
Reference in a new issue