From 9b971dab60ad98c1444cc79c6dc3802f529f10e2 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 5 Jun 2008 07:38:22 +0000 Subject: [PATCH] (svn r13385) -Fix (r12137): In the purchase list, CB36 for capacity was not called for the first part of rail and road vehicles. --- src/articulated_vehicles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp index d84531e424..1a38a4e44e 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;