summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-07 18:13:49 +0000
committertron <tron@openttd.org>2005-06-07 18:13:49 +0000
commitfa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c (patch)
tree918dadd86e83f26d5de3c32831397bc35434bfa7 /roadveh_cmd.c
parentd0cdb45b6c634b4b7238f9b8b8cd9344cb7b1ac3 (diff)
downloadopenttd-fa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c.tar.xz
(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index ba3545e22..8aea4ee4d 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -183,7 +183,7 @@ int32 CmdBuildRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2)
v->max_speed = rvi->max_speed;
v->engine_type = (byte)p1;
- e = DEREF_ENGINE(p1);
+ e = GetEngine(p1);
v->reliability = e->reliability;
v->reliability_spd_dec = e->reliability_spd_dec;
v->max_age = e->lifelength * 366;