Changeset - r12884:5ffeb7dc0279
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-09-02 20:03:56
yexo@openttd.org
(svn r17386) -Fix (r17011): AIBaseStation::IsValidBaseStation() returned false for stations with OWNER_NONE
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_basestation.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)