(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate

This commit is contained in:
rubidium
2009-05-22 20:18:45 +00:00
parent c882248348
commit d37b840cf3
9 changed files with 68 additions and 59 deletions

View File

@@ -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);
}
}