summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-21 13:16:31 +0000
committerbjarni <bjarni@openttd.org>2007-01-21 13:16:31 +0000
commita21e290995b46daa8ae865feadf58c046b6a12ef (patch)
tree672b5f755ff563febd4a8a773cca75d578eec4fa /src
parentbabda828abce35a11b026d08a4c761e331d09560 (diff)
downloadopenttd-a21e290995b46daa8ae865feadf58c046b6a12ef.tar.xz
(svn r8303) -Codechange (r8293): default is moved to the front of the switch in ShowVehicleListWindowLocal()
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index a9dc9f6a0..97f4de633 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1885,6 +1885,7 @@ static void ShowVehicleListWindowLocal(PlayerID player, uint16 VLW_flag, byte ve
* to be changed which happens in the WE_CREATE event and resizing
* some of the windows to the correct size */
switch (vehicle_type) {
+ default: NOT_REACHED();
case VEH_Train:
w = AllocateWindowDescFront(&_player_vehicle_list_train_desc, num);
if (w != NULL) ResizeWindow(w, 65, 38);
@@ -1899,7 +1900,6 @@ static void ShowVehicleListWindowLocal(PlayerID player, uint16 VLW_flag, byte ve
case VEH_Aircraft:
w = AllocateWindowDescFront(&_player_vehicle_list_aircraft_desc, num);
break;
- default: NOT_REACHED(); return;
}
if (w != NULL) {