Skip to content

Commit

Permalink
Fix issue when generating a name for a raceless unit
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Jul 18, 2016
1 parent 7286ea8 commit da30504
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/units/race.cpp
Expand Up @@ -56,8 +56,10 @@ unit_race::unit_race() :
global_traits_(true),
undead_variation_()
{
name_[MALE] = "";
name_[FEMALE] = "";
name_[MALE] = "";
name_[FEMALE] = "";
name_generator_[MALE].reset(new name_generator());
name_generator_[FEMALE].reset(new name_generator());
}

unit_race::unit_race(const config& cfg) :
Expand Down

0 comments on commit da30504

Please sign in to comment.