File diff r23953:ba75d2f3b530 → r23954:8e43140b9a66
src/script/api/script_stationlist.cpp
Show inline comments
 
@@ -18,8 +18,7 @@
 

	
 
ScriptStationList::ScriptStationList(ScriptStation::StationType station_type)
 
{
 
	Station *st;
 
	FOR_ALL_STATIONS(st) {
 
	for (Station *st : Station::Iterate()) {
 
		if ((st->owner == ScriptObject::GetCompany() || ScriptObject::GetCompany() == OWNER_DEITY) && (st->facilities & station_type) != 0) this->AddItem(st->index);
 
	}
 
}