Skip to content

Commit

Permalink
Fix segfault in load
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydolson committed Dec 5, 2023
1 parent d62b475 commit e750878
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/emp/Evolve/Systematics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,9 @@ namespace emp {
// Adjust total offspring
if (adjust_total_offspring) {
for (auto tax : active_taxa) {
tax->parent->AddTotalOffspring();
if (tax->parent) {
tax->parent->AddTotalOffspring();
}
}
} else {
total_offspring_wrong = true;
Expand Down

0 comments on commit e750878

Please sign in to comment.