Help: Hide abilities with empty names.
Fixes empty name abilities in help in Liberty S1.
This commit is contained in:
parent
e395706309
commit
c88a799b90
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue