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();
|
||||
EOT & eoLimit = _parents[elite-1];
|
||||
unsigned index=0;
|
||||
while (temp[index++] > eoLimit)
|
||||
while ( (temp[index++] > eoLimit) && (index < temp.size()) )
|
||||
toSave++;
|
||||
if (toSave)
|
||||
for (unsigned i=0; i<toSave; i++)
|
||||
|
|
|
|||
Reference in a new issue