summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
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/vehicle.cpp
parentc882248348510265e1926b0abc031b4c6fb0f97f (diff)
downloadopenttd-d37b840cf30ea987ab676f1a3631e112cac06244.tar.xz
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 857c4df8a..95f23beb9 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -524,7 +524,7 @@ void Vehicle::PreDestructor()
if (this->IsPrimaryVehicle()) DecreaseGroupNumVehicle(this->group_id);
}
- if (this->type == VEH_ROAD) ClearSlot(this);
+ if (this->type == VEH_ROAD) ClearSlot((RoadVehicle *)this);
if (this->type == VEH_AIRCRAFT && this->IsPrimaryVehicle()) {
Aircraft *a = (Aircraft *)this;
Station *st = GetTargetAirportIfValid(a);
@@ -1742,7 +1742,7 @@ bool CanVehicleUseStation(EngineID engine_type, const Station *st)
*/
bool CanVehicleUseStation(const Vehicle *v, const Station *st)
{
- if (v->type == VEH_ROAD) return st->GetPrimaryRoadStop(v) != NULL;
+ if (v->type == VEH_ROAD) return st->GetPrimaryRoadStop((RoadVehicle *)v) != NULL;
return CanVehicleUseStation(v->engine_type, st);
}