mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r17386) -Fix (r17011): AIBaseStation::IsValidBaseStation() returned false for stations with OWNER_NONE
This commit is contained in:
parent
284b92f3e9
commit
668da9e900
@ -22,7 +22,7 @@
|
|||||||
/* static */ bool AIBaseStation::IsValidBaseStation(StationID station_id)
|
/* static */ bool AIBaseStation::IsValidBaseStation(StationID station_id)
|
||||||
{
|
{
|
||||||
const BaseStation *st = ::BaseStation::GetIfValid(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)
|
/* static */ char *AIBaseStation::GetName(StationID station_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user