diff options
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 253981a46..8769f3aab 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -869,7 +869,7 @@ CommandCost CmdBuildRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, v->reliability = e->reliability; v->reliability_spd_dec = e->reliability_spd_dec; - v->max_age = e->lifelength * DAYS_IN_LEAP_YEAR; + v->max_age = e->GetLifeLengthInDays(); v->name = NULL; v->railtype = rvi->railtype; |