summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index f2704e1d0..894477e68 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -230,7 +230,7 @@ CommandCost CmdBuildRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
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();
_new_vehicle_id = v->index;
v->name = NULL;