Help: Hide abilities with empty names.

Fixes empty name abilities in help in Liberty S1.
This commit is contained in:
josteph 2018-07-21 12:04:46 +00:00 committed by Charles Dang
parent e395706309
commit c88a799b90

View file

@ -133,6 +133,10 @@ topic_list generate_ability_topics(const bool sort_generated)
}
for(const auto& a : ability_topic_data) {
if(a.second->name.empty()) {
continue;
}
std::ostringstream text;
text << a.second->description;
text << "\n\n" << "<big>" << _("Units with this ability") << "</big>"<< "\n";