branch | noai |
changeset 9627 | 6a7c8ead2328 |
parent 9614 | 814c3bbf8ecc |
child 9633 | 6099483c684c |
--- a/src/ai/api/ai_vehiclelist.cpp Tue Jun 12 18:02:11 2007 +0000 +++ b/src/ai/api/ai_vehiclelist.cpp Tue Jun 12 19:52:26 2007 +0000 @@ -6,7 +6,7 @@ { Vehicle *v; FOR_ALL_VEHICLES(v) { - if (v->owner == _current_player && v->first == NULL) + if (v->owner == _current_player && v->IsPrimaryVehicle()) this->AddItem(v->index); } }