diff options
author | bjarni <bjarni@openttd.org> | 2007-10-26 21:32:24 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-10-26 21:32:24 +0000 |
commit | 5c3b19ec893cae5465850e3a4bed07d064ed7bd8 (patch) | |
tree | 5bb88bac1e41cf93c670b9605a2b6dd5446f5efa /src | |
parent | 17df5bdf723669223ee89c2bdbf498e9980f2494 (diff) | |
download | openttd-5c3b19ec893cae5465850e3a4bed07d064ed7bd8.tar.xz |
(svn r11348) -Fix (r11049): [OSX] killed a warning (don't ask why only OSX showed this one)
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index e19086556..b32222096 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1418,12 +1418,13 @@ void CreateVehicleDetailsWindow(Window *w) static bool inline IsVehicleServiceIntervalEnabled(const VehicleType vehicle_type) { switch (vehicle_type) { + default: NOT_REACHED(); case VEH_TRAIN: return _patches.servint_trains != 0; break; case VEH_ROAD: return _patches.servint_roadveh != 0; break; case VEH_SHIP: return _patches.servint_ships != 0; break; case VEH_AIRCRAFT: return _patches.servint_aircraft != 0; break; - default: NOT_REACHED(); } + return false; // kill a compiler warning } extern int GetTrainDetailsWndVScroll(VehicleID veh_id, byte det_tab); |