summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-06-04 20:06:54 +0000
committerglx <glx@openttd.org>2007-06-04 20:06:54 +0000
commit32a04368b3df96642420815acef9a9d752fe0d79 (patch)
tree029f1e0d63c46cbf652c5b1884ad426af0b7d6d6 /src/network
parent62524492d50239f8b976dad85079f17d0c07991a (diff)
downloadopenttd-32a04368b3df96642420815acef9a9d752fe0d79.tar.xz
(svn r10037) -Fix (r10035, r10036): silence some 'may be used uninitialized' warnings
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 241796852..30bb22c55 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -685,7 +685,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
ShowDropDownMenu(w, _players_dropdown, _network_game_info.spectators_max, 14, 0, 0);
break;
case 15: case 16: { /* Language */
- int sel;
+ uint sel = 0;
for (uint i = 0; i < lengthof(_language_dropdown) - 1; i++) {
if (_language_dropdown[i] == STR_NETWORK_LANG_ANY + _network_game_info.server_lang) {
sel = i;