mirror of https://github.com/OpenTTD/OpenTTD
(svn r15587) -Fix (r15345): I should really test even those simple api functions better.
parent
a78724e824
commit
a41b143e58
|
@ -40,7 +40,7 @@ AIVehicleList_SharedOrders::AIVehicleList_SharedOrders(VehicleID vehicle_id)
|
||||||
{
|
{
|
||||||
if (!AIVehicle::IsValidVehicle(vehicle_id)) return;
|
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);
|
this->AddItem(v->index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue