summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-06-16 13:52:18 +0000
committerrubidium <rubidium@openttd.org>2009-06-16 13:52:18 +0000
commit512b021e261f042dccd9bdc254cd470a46e575f5 (patch)
treee78a9754bf6d326bf90b988cbe69ed74a6a763b4 /src/roadveh_cmd.cpp
parent4b05617c42c89a323560a0bfd9225fcac9b69588 (diff)
downloadopenttd-512b021e261f042dccd9bdc254cd470a46e575f5.tar.xz
(svn r16581) -Codechange: unify the access to Engine::lifelength.
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;