(svn r17386) -Fix (r17011): AIBaseStation::IsValidBaseStation() returned false for stations with OWNER_NONE

pull/155/head
yexo 15 years ago
parent 64b3cab2ff
commit 145f86027b

@ -22,7 +22,7 @@
/* static */ bool AIBaseStation::IsValidBaseStation(StationID station_id)
{
const BaseStation *st = ::BaseStation::GetIfValid(station_id);
return st != NULL && st->owner == _current_company;
return st != NULL && (st->owner == _current_company || st->owner == OWNER_NONE);
}
/* static */ char *AIBaseStation::GetName(StationID station_id)

Loading…
Cancel
Save