diff options
author | truelight <truelight@openttd.org> | 2005-01-24 20:25:52 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-24 20:25:52 +0000 |
commit | f08983a948e167fa7dca6a762ad3eeafe5360445 (patch) | |
tree | 068486e55a61352bfd6166549959b1dcfe4befdb | |
parent | 7a5ce1cb343184a7409d483451e4241a47ce9a89 (diff) | |
download | openttd-f08983a948e167fa7dca6a762ad3eeafe5360445.tar.xz |
(svn r1643) -Fix: [ 1108547 ] You can now change the server-password via the GUI again
-rw-r--r-- | network_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/network_gui.c b/network_gui.c index ad60104a2..72204b185 100644 --- a/network_gui.c +++ b/network_gui.c @@ -527,7 +527,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e) break; case 4: { /* Set password button */ StringID str; - str = AllocateName(_network_game_info.server_password, 0); + str = AllocateName(_network_server_password, 0); ShowQueryString(str, STR_NETWORK_SET_PASSWORD, 20, 250, w->window_class, w->window_number); DeleteName(str); } break; @@ -610,8 +610,8 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e) case WE_ON_EDIT_TEXT: { byte *b = e->edittext.str; - ttd_strlcpy(_network_game_info.server_password, b, sizeof(_network_game_info.server_password)); - if (_network_game_info.server_password[0] == '\0') { + ttd_strlcpy(_network_server_password, b, sizeof(_network_server_password)); + if (_network_server_password[0] == '\0') { _network_game_info.use_password = 0; } else { _network_game_info.use_password = 1; |