--- a/src/vehicle.h Mon Jan 22 08:38:18 2007 +0000 +++ b/src/vehicle.h Mon Jan 22 10:27:14 2007 +0000 @@ -429,6 +429,7 @@ */ static inline byte VehTypeToIndex(byte type) { + assert(IsPlayerBuildableVehicleType(type)); return type - VEH_Train; }