src/newgrf.cpp
changeset 7134 c5a90dd41166
parent 7125 4ce0c7a12a3f
child 7141 470199c6dda0
--- a/src/newgrf.cpp	Fri May 18 14:34:15 2007 +0000
+++ b/src/newgrf.cpp	Fri May 18 17:31:41 2007 +0000
@@ -4550,6 +4550,8 @@
 		/* 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);