equal
deleted
inserted
replaced
10 FOR_ALL_VEHICLES(v) { |
10 FOR_ALL_VEHICLES(v) { |
11 if (v->owner == _current_player && v->IsPrimaryVehicle()) this->AddItem(v->index); |
11 if (v->owner == _current_player && v->IsPrimaryVehicle()) this->AddItem(v->index); |
12 } |
12 } |
13 } |
13 } |
14 |
14 |
15 AIStationVehicleList::AIStationVehicleList(StationID station_id) |
15 AIVehicleList_Station::AIVehicleList_Station(StationID station_id) |
16 { |
16 { |
|
17 this->Clear(); |
17 if (!AIStation::IsValidStation(station_id)) return; |
18 if (!AIStation::IsValidStation(station_id)) return; |
18 |
19 |
19 Vehicle *v; |
20 Vehicle *v; |
20 |
21 |
21 FOR_ALL_VEHICLES(v) { |
22 FOR_ALL_VEHICLES(v) { |