Skip to content

Commit

Permalink
Help: Hide abilities with empty names.
Browse files Browse the repository at this point in the history
Fixes empty name abilities in help in Liberty S1.
  • Loading branch information
jostephd authored and CelticMinstrel committed Jul 22, 2018
1 parent bca38cd commit 38a8519
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/help/help_impl.cpp
Expand Up @@ -547,6 +547,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";
Expand Down

0 comments on commit 38a8519

Please sign in to comment.