diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 22:33:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 22:33:05 +0000 |
commit | c4b627af422075ce4a0e1026c52f871dd3f146c0 (patch) | |
tree | febaea249dc307b4b619aeff09e353677bbbcd84 /src/articulated_vehicles.cpp | |
parent | 80e94b9bb15f846189e98f1f457afe2b96ba2b58 (diff) | |
download | openttd-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.cpp | 4 |
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; |