summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 20:18:45 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 20:18:45 +0000
commitd37b840cf30ea987ab676f1a3631e112cac06244 (patch)
treee66cefea331f2f4191a6c169e75e9f272b60ef1e /src/saveload
parentc882248348510265e1926b0abc031b4c6fb0f97f (diff)
downloadopenttd-d37b840cf30ea987ab676f1a3631e112cac06244.tar.xz
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/vehicle_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index d7e2c136d..fdfb94666 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -321,7 +321,7 @@ void AfterLoadVehicles(bool part_of_load)
if (IsFrontEngine(v)) v->u.rail.last_speed = v->cur_speed; // update displayed train speed
TrainConsistChanged(v, false);
} else if (v->type == VEH_ROAD && IsRoadVehFront(v)) {
- RoadVehUpdateCache(v);
+ RoadVehUpdateCache((RoadVehicle *)v);
}
}