Unit Create: made Race the default sorting option, as was in 1.12
Fixes the second issue described in #2510.
This commit is contained in:
parent
5c570841d3
commit
6b52d16fae
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,8 @@ void unit_create::pre_show(window& window)
|
|||
list.register_sorting_option(0, [this](const int i) { return (*units_[i]).race()->plural_name().str(); });
|
||||
list.register_sorting_option(1, [this](const int i) { return (*units_[i]).type_name().str(); });
|
||||
|
||||
list.set_active_sorting_option({0, listbox::SORT_ASCENDING}, true);
|
||||
|
||||
list_item_clicked(window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue