diff options
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; |