summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehiclelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_vehiclelist.cpp')
-rw-r--r--src/ai/api/ai_vehiclelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehiclelist.cpp b/src/ai/api/ai_vehiclelist.cpp
index c7daff5c5..52ca83dae 100644
--- a/src/ai/api/ai_vehiclelist.cpp
+++ b/src/ai/api/ai_vehiclelist.cpp
@@ -40,7 +40,7 @@ AIVehicleList_SharedOrders::AIVehicleList_SharedOrders(VehicleID vehicle_id)
{
if (!AIVehicle::IsValidVehicle(vehicle_id)) return;
- for (const Vehicle *v = GetVehicle(vehicle_id)->FirstShared(); v != NULL; v = v->NextShared()) {
+ for (const Vehicle *v = Vehicle::Get(vehicle_id)->FirstShared(); v != NULL; v = v->NextShared()) {
this->AddItem(v->index);
}
}