From 7389fd78fe5032b50bb871f5a5882be6930f0261 Mon Sep 17 00:00:00 2001 From: JetteReeg <47744741+JetteReeg@users.noreply.github.com> Date: Tue, 6 Aug 2024 08:41:58 +0200 Subject: [PATCH] Bugfix for issue #66 #66 fixed --- Individual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Individual.cpp b/Individual.cpp index 28555b1..aa70414 100644 --- a/Individual.cpp +++ b/Individual.cpp @@ -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;