summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-15 11:28:22 +0000
committerrubidium <rubidium@openttd.org>2007-05-15 11:28:22 +0000
commit08be68e0b4b58ecde33154ead6284d4eed78ccec (patch)
tree5302883001c15ce5eca3dfd6a763cf1108b5e752 /src/vehicle.cpp
parent0f81140b59f61cd9d4f39a7ba6c99c56ae8cf89f (diff)
downloadopenttd-08be68e0b4b58ecde33154ead6284d4eed78ccec.tar.xz
(svn r9841) -Codechange: add a little more type strictness to the vehicle types.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 0b7916d29..724cd3428 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -677,6 +677,8 @@ void CallVehicleTicks()
_vehicle_tick_procs[v->type](v);
switch (v->type) {
+ default: break;
+
case VEH_TRAIN:
case VEH_ROAD:
case VEH_AIRCRAFT:
@@ -2850,6 +2852,7 @@ static void Load_VEHS()
case VEH_SPECIAL: v = new (v) SpecialVehicle(); break;
case VEH_DISASTER: v = new (v) DisasterVehicle(); break;
case VEH_INVALID: v = new (v) InvalidVehicle(); break;
+ default: NOT_REACHED();
}
/* Old savegames used 'last_station_visited = 0xFF' */