From 3bdb4982d708543fa6e6fda9a220c4bbb849fa89 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 25 Dec 2013 11:37:10 +0000 Subject: (svn r26180) -Fix: Visual effects did not work for articulated RV parts. --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2