diff options
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 0b80bbb89..9d4bb36f1 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -220,6 +220,8 @@ void TrainConsistChanged(Vehicle* v) } } + u->cargo_cap = GetVehicleProperty(u, 0x14, rvi_u->capacity); + /* check the vehicle length (callback) */ uint16 veh_len = CALLBACK_FAILED; if (HASBIT(EngInfo(u->engine_type)->callbackmask, CBM_VEHICLE_LENGTH)) { |