From 61e735ba4c62e578ca16f708ac1fdc872ff6416d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Jul 2009 08:59:27 +0000 Subject: (svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle. --- src/ai/api/ai_vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_vehicle.cpp b/src/ai/api/ai_vehicle.cpp index bd9f76c36..a43b8aa6b 100644 --- a/src/ai/api/ai_vehicle.cpp +++ b/src/ai/api/ai_vehicle.cpp @@ -412,7 +412,7 @@ const Vehicle *v = ::Vehicle::Get(vehicle_id); switch (v->type) { - case VEH_ROAD: return ::RoadVehHasArticPart(v); + case VEH_ROAD: return ::RoadVehicle::From(v)->RoadVehHasArticPart(); case VEH_TRAIN: return ::Train::From(v)->EngineHasArticPart(); default: NOT_REACHED(); } -- cgit v1.2.3-70-g09d2