summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-10-26 21:32:24 +0000
committerbjarni <bjarni@openttd.org>2007-10-26 21:32:24 +0000
commit27bf599ae2565fe98b7c929c30e79b60c82e41b4 (patch)
tree5bb88bac1e41cf93c670b9605a2b6dd5446f5efa /src
parentbdb5b8ed8711c89e0f897d810bf81465198373e8 (diff)
downloadopenttd-27bf599ae2565fe98b7c929c30e79b60c82e41b4.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.cpp3
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);