summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-26 08:51:33 +0000
committerrubidium <rubidium@openttd.org>2009-05-26 08:51:33 +0000
commit462c1ec4f3f3bb5745bb5b541bd2a93b1784d829 (patch)
tree17aaa7421ae8e1ef9ec34e33a8f838b5c8dfec4b /src/articulated_vehicles.cpp
parent7425bf779d8bd989d51f3844c5e70bbe352962cc (diff)
downloadopenttd-462c1ec4f3f3bb5745bb5b541bd2a93b1784d829.tar.xz
(svn r16426) -Fix [FS#2921] (r16390): articulated parts got the wrong image assigned
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index 4aabc955e..1c3ef6cdc 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -341,7 +341,7 @@ void AddArticulatedParts(Vehicle *first, VehicleType type)
rv->roadtype = front->roadtype;
rv->compatible_roadtypes = front->compatible_roadtypes;
- rv->spritenum = e_artic->image_index;
+ rv->spritenum = e_artic->u.road.image_index;
if (e_artic->CanCarryCargo()) {
rv->cargo_type = e_artic->GetDefaultCargoType();
rv->cargo_cap = e_artic->u.road.capacity; // Callback 36 is called when the consist is finished