summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-31 14:54:25 +0000
committertron <tron@openttd.org>2006-08-31 14:54:25 +0000
commitd8436d15aecc94c1bc1d113d06a45c308e7381b9 (patch)
treef334161e925d4def886346e0774293fb9beb8e36
parent453028b3a7f0fbe646d4a99781fe43ce99386549 (diff)
downloadopenttd-d8436d15aecc94c1bc1d113d06a45c308e7381b9.tar.xz
(svn r6276) Remove a redundant assignment
-rw-r--r--network_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/network_gui.c b/network_gui.c
index 4c530cbb8..95d9d5213 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -1392,8 +1392,7 @@ static void ClientListWndProc(Window *w, WindowEvent *e)
void ShowClientList(void)
{
- Window *w = AllocateWindowDescFront(&_client_list_desc, 0);
- if (w != NULL) w->window_number = 0;
+ AllocateWindowDescFront(&_client_list_desc, 0);
}
static void NetworkJoinStatusWindowWndProc(Window *w, WindowEvent *e)