From 726ba5086887306ca20561fee968be7777c282ce Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 7 Jun 2009 13:29:09 +0000 Subject: (svn r16529) -Fix [NoAI]: StationIDs from oilrigs were not considered valid by the API. --- src/ai/api/ai_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/api/ai_station.cpp b/src/ai/api/ai_station.cpp index 5d73b147b..1a7ef468d 100644 --- a/src/ai/api/ai_station.cpp +++ b/src/ai/api/ai_station.cpp @@ -18,7 +18,7 @@ /* static */ bool AIStation::IsValidStation(StationID station_id) { const Station *st = ::Station::GetIfValid(station_id); - return st != NULL && st->owner == _current_company; + return st != NULL && (st->owner == _current_company || st->owner == OWNER_NONE); } /* static */ StationID AIStation::GetStationID(TileIndex tile) -- cgit v1.2.3-70-g09d2