summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-06-05 07:38:22 +0000
committerpeter1138 <peter1138@openttd.org>2008-06-05 07:38:22 +0000
commitecfac35ccc449f59a41c25649ef49cf7c4da37c5 (patch)
tree975da43200229afd8295d208ad54e47128627991 /src/articulated_vehicles.cpp
parent9096f8ac55467f9a973ca697536a64641d8539c9 (diff)
downloadopenttd-ecfac35ccc449f59a41c25649ef49cf7c4da37c5.tar.xz
(svn r13385) -Fix (r12137): In the purchase list, CB36 for capacity was not called for the first part of rail and road vehicles.
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index d84531e42..1a38a4e44 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -40,11 +40,11 @@ uint16 *GetCapacityOfArticulatedParts(EngineID engine, VehicleType type)
if (type == VEH_TRAIN) {
const RailVehicleInfo *rvi = RailVehInfo(engine);
- capacity[rvi->cargo_type] = rvi->capacity;
+ capacity[rvi->cargo_type] = GetEngineProperty(engine, 0x14, rvi->capacity);
if (rvi->railveh_type == RAILVEH_MULTIHEAD) capacity[rvi->cargo_type] += rvi->capacity;
} else if (type == VEH_ROAD) {
const RoadVehicleInfo *rvi = RoadVehInfo(engine);
- capacity[rvi->cargo_type] = rvi->capacity;
+ capacity[rvi->cargo_type] = GetEngineProperty(engine, 0x0F, rvi->capacity);
}
if (!HasBit(EngInfo(engine)->callbackmask, CBM_VEHICLE_ARTIC_ENGINE)) return capacity;