src/newgrf_engine.cpp
changeset 6473 03480a0f016e
parent 6452 fc8ca2b46277
child 6474 24e7ceeb25f5
--- a/src/newgrf_engine.cpp	Sat Feb 24 22:35:42 2007 +0000
+++ b/src/newgrf_engine.cpp	Sat Feb 24 23:20:21 2007 +0000
@@ -608,7 +608,7 @@
 			 */
 			const CargoSpec *cs = GetCargo(v->cargo_type);
 
-			return (cs->classes << 16) | (cs->weight << 8) | cs->bitnum;
+			return (cs->classes << 16) | (cs->weight << 8) | GetEngineGRF(v->engine_type)->cargo_map[v->cargo_type];
 		}
 
 		case 0x48: return GetVehicleTypeInfo(v->engine_type); /* Vehicle Type Info */