Mercurial > hg > openttd
changeset 12894:36fe71e3a957 draft
(svn r17386) -Fix (r17011): AIBaseStation::IsValidBaseStation() returned false for stations with OWNER_NONE
author | yexo <yexo@openttd.org> |
---|---|
date | Wed, 02 Sep 2009 20:03:56 +0000 |
parents | 334cc3380d11 |
children | baee5fd5f899 |
files | src/ai/api/ai_basestation.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/api/ai_basestation.cpp +++ b/src/ai/api/ai_basestation.cpp @@ -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)