Skip to content

Commit

Permalink
Bugfix for issue #66
Browse files Browse the repository at this point in the history
#66 fixed
  • Loading branch information
JetteReeg authored Aug 6, 2024
1 parent 7bc206b commit 7389fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Individual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Individual::Individual(Cell* pCell, Patch* pPatch, short stg, short a, short rep
geneticFitness = 1.0;
stage = stg;
if (probmale <= 0.0) sex = FEM;
else sex = pRandom->Bernoulli(probmale) ? FEM : MAL;
else sex = pRandom->Bernoulli(probmale) ? MAL : FEM;
age = a;
status = 0;

Expand Down

0 comments on commit 7389fd7

Please sign in to comment.