Help: Hide abilities with empty names.

Fixes empty name abilities in help in Liberty S1.

(cherry-picked from commit c88a799b90f7d92ed993d7cf1eca98cef31ba583)
This commit is contained in:
josteph 2018-07-21 12:04:46 +00:00 committed by Charles Dang
parent 8086df2196
commit c54f4e6f19

View File

@ -530,6 +530,9 @@ std::vector<topic> 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" << _("<header>text='Units with this ability'</header>") << "\n";