Skip to content

Commit

Permalink
only set goal bias if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPannetier committed Sep 6, 2024
1 parent bdab3ff commit 9035771
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 @@ -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();
}
Expand Down

0 comments on commit 9035771

Please sign in to comment.