Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ga_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ GAULFUNC boolean ga_select_one_randomrank(population *pop, entity **mother)

*mother = NULL;

if ( pop->orig_size < pop->select_state )
if ( pop->orig_size <= pop->select_state )
{
return TRUE;
}
Expand Down Expand Up @@ -316,7 +316,7 @@ GAULFUNC boolean ga_select_two_randomrank(population *pop, entity **mother, enti
*mother = NULL;
*father = NULL;

if ( pop->orig_size < pop->select_state )
if ( pop->orig_size <= pop->select_state )
{
return TRUE;
}
Expand Down