summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-12-25 11:37:10 +0000
committerfrosch <frosch@openttd.org>2013-12-25 11:37:10 +0000
commit3bdb4982d708543fa6e6fda9a220c4bbb849fa89 (patch)
tree4be17b791d26dac2814b87337ee721a9e0b73013 /src
parent40bf635a6d273b37fc578db4764676213731a959 (diff)
downloadopenttd-3bdb4982d708543fa6e6fda9a220c4bbb849fa89.tar.xz
(svn r26180) -Fix: Visual effects did not work for articulated RV parts.
Diffstat (limited to 'src')
-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 c70cd4f4e..ae15a88a5 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -241,7 +241,7 @@ void RoadVehUpdateCache(RoadVehicle *v, bool same_length)
v->gcache.cached_total_length += u->gcache.cached_veh_length;
/* Update visual effect */
- v->UpdateVisualEffect();
+ u->UpdateVisualEffect();
/* Update cargo aging period. */
u->vcache.cached_cargo_age_period = GetVehicleProperty(u, PROP_ROADVEH_CARGO_AGE_PERIOD, EngInfo(u->engine_type)->cargo_age_period);