summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 22:33:05 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 22:33:05 +0000
commitc4b627af422075ce4a0e1026c52f871dd3f146c0 (patch)
treefebaea249dc307b4b619aeff09e353677bbbcd84 /src/articulated_vehicles.cpp
parent80e94b9bb15f846189e98f1f457afe2b96ba2b58 (diff)
downloadopenttd-c4b627af422075ce4a0e1026c52f871dd3f146c0.tar.xz
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index 2de9bac0f..233d3c9a7 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -312,8 +312,8 @@ void AddArticulatedParts(Vehicle *first, VehicleType type)
Train *t = new Train();
t->subtype = 0;
previous->SetNext(t);
- t->u.rail.track = front->u.rail.track;
- t->u.rail.railtype = front->u.rail.railtype;
+ t->track = front->track;
+ t->railtype = front->railtype;
t->u.rail.first_engine = front->engine_type;
t->spritenum = e_artic->u.rail.image_index;