summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-26 07:30:13 +0000
committeryexo <yexo@openttd.org>2009-02-26 07:30:13 +0000
commita41b143e58d1290f36ab62fd402953a05e9b7e0b (patch)
tree48c0bd79ee44ddf5b5a501e3dd29d58e9b3f98c0 /src/ai/api
parenta78724e824bff0f77fd11fad5cbb991b40eb31e3 (diff)
downloadopenttd-a41b143e58d1290f36ab62fd402953a05e9b7e0b.tar.xz
(svn r15587) -Fix (r15345): I should really test even those simple api functions better.
Diffstat (limited to 'src/ai/api')
-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 a08357b06..424f4e6bb 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->NextShared()) {
+ for (const Vehicle *v = GetVehicle(vehicle_id)->FirstShared(); v != NULL; v = v->NextShared()) {
this->AddItem(v->index);
}
}