Fix using an uninitialised value.

While using valgrind to investigate bug #20876 it warned about this
issue.

Ported from a6eeac04e5dc863013fa3e5e0b723825ddc4fc08
This commit is contained in:
Mark de Wever 2014-03-08 10:53:59 +01:00
parent 778955501a
commit 690fb03aac

View File

@ -165,7 +165,7 @@ namespace { // Types
input_max_size = 256;
}
int option_chosen;
int option_chosen = -1;
int dlg_result = gui2::show_wml_message(left_side,
resources::screen->video(), caption, cfg["message"],
image, false, has_text_input, text_input_label,