Skip to content

Commit

Permalink
Fix forgotten beasts being called children.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Mar 19, 2018
1 parent 0a0fcf6 commit 11cc8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand All @@ -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())
{
Expand Down

0 comments on commit 11cc8fa

Please sign in to comment.