summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index bae5637fe..71ab1e799 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -735,15 +735,7 @@ static void DepotWndProc(Window *w, WindowEvent *e)
case DEPOT_WIDGET_BUILD: // Build vehicle
ResetObjectToPlace();
- switch (WP(w, depot_d).type) {
- case VEH_Road: ShowBuildRoadVehWindow(w->window_number); break;
- case VEH_Ship:
- case VEH_Train:
- case VEH_Aircraft:
- ShowBuildVehicleWindow(w->window_number, WP(w, depot_d).type);
- break;
- default: NOT_REACHED();
- }
+ ShowBuildVehicleWindow(w->window_number, WP(w, depot_d).type);
break;
case DEPOT_WIDGET_CLONE: // Clone button