diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-18 17:04:44 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-18 17:04:44 +0000 |
commit | 53f954edd3ecf5f9199ee684ac39685a481f8e97 (patch) | |
tree | 8c4132a7ae7df56d2180aa2fa9fa2d88c5cbcf76 /network_gui.c | |
parent | b3c48c0a84323838b5104e422d11b8a1250325c8 (diff) | |
download | openttd-53f954edd3ecf5f9199ee684ac39685a481f8e97.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.c | 5 |
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; |