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.

(cherry-picked from commit f54b3f722515c94a96d8ba1694e65ae4697c1c01)
This commit is contained in:
Charles Dang 2018-06-16 15:06:49 +11:00
parent 025af47181
commit 32f0f0e03a

View File

@ -324,7 +324,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")) {