From 9035771c59a10511ef5e63fe51f3cd2a52333ee9 Mon Sep 17 00:00:00 2001 From: Theo Pannetier Date: Fri, 6 Sep 2024 15:09:33 +0100 Subject: [PATCH] only set goal bias if enabled --- Individual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Individual.cpp b/Individual.cpp index 0c84023..d638228 100644 --- a/Individual.cpp +++ b/Individual.cpp @@ -508,8 +508,8 @@ void Individual::setIndSMSTraits(Species* pSpecies) { double dp, gb, alphaDB, betaDB; dp = gb = alphaDB = betaDB = 0.0; dp = getTrait(SMS_DP)->express(); - gb = getTrait(SMS_GB)->express(); if (s.goalType == 2) { + gb = getTrait(SMS_GB)->express(); alphaDB = getTrait(SMS_ALPHADB)->express(); betaDB = getTrait(SMS_BETADB)->express(); }