From 11cc8fa34b511d7e585358431da0d83db7f7a1c1 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Sun, 18 Mar 2018 20:45:37 -0500 Subject: [PATCH] Fix forgotten beasts being called children. --- helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.cpp b/helpers.cpp index 5c503cd..01c710a 100644 --- a/helpers.cpp +++ b/helpers.cpp @@ -475,7 +475,7 @@ void categorize(std::ostream & s, df::historical_figure *hf, bool, bool) } std::string name(caste->caste_name[0]); std::string suffix; - if (caste->misc.baby_age < caste->misc.child_age && age_years < caste->misc.baby_age) + if (caste->flags.is_set(caste_raw_flags::BABY) && age_years < caste->misc.baby_age) { if (caste->baby_name[0].empty()) { @@ -486,7 +486,7 @@ void categorize(std::ostream & s, df::historical_figure *hf, bool, bool) name = caste->baby_name[0]; } } - else if (age_years < caste->misc.child_age) + else if (caste->flags.is_set(caste_raw_flags::CHILD) && age_years < caste->misc.child_age) { if (caste->child_name[0].empty()) {