For a [message] with options, zero-initialise the default selection int (#6217)
I can't reproduce the issue (it selects the first option by default for me even without this), but this probably fixes #6038 "When you have a long list of [message][option], it will default to highlighting the 3rd entry for some reason."
This commit is contained in:
parent
7f2323ddc5
commit
219f2c8f02
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ int show_message_dialog(lua_State* L)
|
|||
input.maximum_length = txt_cfg["max_length"].to_int(256);
|
||||
input.text_input_was_specified = has_input;
|
||||
|
||||
gui2::dialogs::wml_message_options options;
|
||||
auto options = gui2::dialogs::wml_message_options {};
|
||||
if(!lua_isnoneornil(L, 2)) {
|
||||
luaL_checktype(L, 2, LUA_TTABLE);
|
||||
std::size_t n = lua_rawlen(L, 2);
|
||||
|
|
Loading…
Add table
Reference in a new issue