summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-11-18 17:04:44 +0000
committerDarkvater <Darkvater@openttd.org>2006-11-18 17:04:44 +0000
commit22ab60c9cbeaabe69e387086fc14261da143bd81 (patch)
tree8c4132a7ae7df56d2180aa2fa9fa2d88c5cbcf76 /network_gui.c
parentc01c294afbcd9e75213be8ff569320889c1b793a (diff)
downloadopenttd-22ab60c9cbeaabe69e387086fc14261da143bd81.tar.xz
(svn r7206) -Codechange: Remove (some of) the magic needed for windows that could be invalid after
a call to DeleteWindow() somewhere else. Also do some cleanup with AllowWindowDescFront()
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/network_gui.c b/network_gui.c
index 2e60fcac5..05ed7379d 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -1258,11 +1258,6 @@ static void ClientListPopupWndProc(Window *w, WindowEvent *e)
if (index >= 0 && e->we.popupmenu.pt.y >= w->top)
HandleClientListPopupClick(index, WP(w,menu_d).main_button);
- // Sometimes, because of the bad DeleteWindow-proc, the 'w' pointer is
- // invalid after the last functions (mostly because it kills a window
- // that is in front of 'w', and because of a silly memmove, the address
- // 'w' was pointing to becomes invalid), so we need to refetch
- // the right address...
DeleteWindowById(WC_TOOLBAR_MENU, 0);
} break;