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 /depot_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 'depot_gui.c')
-rw-r--r-- | depot_gui.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/depot_gui.c b/depot_gui.c index e7b7fbb1c..da879bb42 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -189,11 +189,8 @@ static void DepotSellAllWndProc(Window *w, WindowEvent *e) case WE_CLICK: switch (e->we.click.widget) { case 4: - /* Weird issue here. If We execute the DoCommandP first, then the window is not closed */ - DeleteWindow(w); DoCommandP(tile, vehicle_type, 0, NULL, CMD_DEPOT_SELL_ALL_VEHICLES); - break; - + /* Fallthrough */ case 3: DeleteWindow(w); break; |