summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-18 17:31:41 +0000
committerrubidium <rubidium@openttd.org>2007-05-18 17:31:41 +0000
commitba24c34f8558369cc0802c92963b40ff5c7b0bc2 (patch)
tree3eac526253ee6111911b7ea868ca46065b6d5889 /src/newgrf.cpp
parent2196abd71d687564597a0d4f6f9defc8679ba87b (diff)
downloadopenttd-ba24c34f8558369cc0802c92963b40ff5c7b0bc2.tar.xz
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 3dc46fcbf..10326ef7a 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -4550,6 +4550,8 @@ static void CalculateRefitMasks()
/* Check if this engine's cargo type is valid. If not, set to the first refittable
* cargo type. Apparently cargo_type isn't a common property... */
switch (GetEngine(engine)->type) {
+ default: NOT_REACHED();
+ case VEH_AIRCRAFT: break;
case VEH_TRAIN: {
RailVehicleInfo *rvi = &_rail_vehicle_info[engine];
if (rvi->cargo_type == CT_INVALID) rvi->cargo_type = FindFirstRefittableCargo(engine);