mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 15:01:19 +00:00
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:
parent
8086df2196
commit
c54f4e6f19
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user