From 1978b312d8712e864bcb46fdb1d6086bc7af199c Mon Sep 17 00:00:00 2001 From: Ali El Gariani Date: Sat, 4 Oct 2008 20:57:07 +0000 Subject: [PATCH] Quick temporary fix for a bug causing double male/female ability help pages. This deactivates the female_name of ability for unit_type only, so the change is only visible in the recruit dialogue for purely female unit type. --- src/unit_types.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unit_types.cpp b/src/unit_types.cpp index 406a82414bb..937e37b7a2e 100644 --- a/src/unit_types.cpp +++ b/src/unit_types.cpp @@ -837,11 +837,13 @@ void unit_type::build_help_index(const config& cfg, const movement_type_map& mv_ for(config::child_map::const_iterator j = abi.begin(); j != abi.end(); ++j) { for(config::child_list::const_iterator k = j->second.begin(); k != j->second.end(); ++k) { if((**k)["name"] != "") { - abilities_.push_back( + abilities_.push_back((**k)["name"]); + //FIXME: female name cause double entries in help + /*abilities_.push_back( genders_.front() == unit_race::MALE || (**k)["female_name"].empty() ? (**k)["name"] : (**k)["female_name"] - ); + );*/ ability_tooltips_.push_back((**k)["description"]); } }