diff --git a/include/emp/Evolve/Systematics.hpp b/include/emp/Evolve/Systematics.hpp index 19f802954..6eaa07481 100644 --- a/include/emp/Evolve/Systematics.hpp +++ b/include/emp/Evolve/Systematics.hpp @@ -1213,10 +1213,7 @@ namespace emp { // std::ranges::ref_view(outside_taxa)}; // for (emp::Ptr tax : all | std::views::join) { for (emp::Ptr tax : active_taxa) { - double weight = 1; - if (normalize) { - weight = std::max(0, static_cast(tax->GetNumOff()) - 1); - } + const double weight = normalize ? std::max(0, static_cast(tax->GetNumOff()) - 1) : 1.0; total += tax->GetOriginationTime() * weight; count += weight; }