GUI2/Multimenu Button: fixed maximum_shown defaulting to 0 instead of 1

Fixes the campaign selection dialog's modification dropdown saying "1 other" for
the first mod you select.
This commit is contained in:
Charles Dang 2018-06-16 15:06:49 +11:00
parent 23740ea3cf
commit f54b3f7225

View file

@ -321,7 +321,7 @@ namespace implementation
builder_multimenu_button::builder_multimenu_button(const config& cfg)
: builder_styled_widget(cfg)
, max_shown_(cfg["maximum_shown"])
, max_shown_(cfg["maximum_shown"].to_unsigned(1))
, options_()
{
for(const auto& option : cfg.child_range("option")) {