From d86e17d65adebad6f0213451b99645be3494ea45 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 1 Jul 2009 23:57:20 +0000 Subject: (svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train --- 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 45e50ca4d..bd9f76c36 100644 --- a/src/ai/api/ai_vehicle.cpp +++ b/src/ai/api/ai_vehicle.cpp @@ -413,7 +413,7 @@ const Vehicle *v = ::Vehicle::Get(vehicle_id); switch (v->type) { case VEH_ROAD: return ::RoadVehHasArticPart(v); - case VEH_TRAIN: return ::EngineHasArticPart(v); + case VEH_TRAIN: return ::Train::From(v)->EngineHasArticPart(); default: NOT_REACHED(); } } -- cgit v1.2.3-70-g09d2