summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-02 08:59:27 +0000
committerrubidium <rubidium@openttd.org>2009-07-02 08:59:27 +0000
commit61e735ba4c62e578ca16f708ac1fdc872ff6416d (patch)
tree5deab079f0b88a32b90e1d0ed7f44a140ace2560 /src/ai/api
parent77eaefb61c9d1cbd4e6347e3fc042565a5b7572e (diff)
downloadopenttd-61e735ba4c62e578ca16f708ac1fdc872ff6416d.tar.xz
(svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle.
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}