mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
Fix #9867: Industry::stations_near not filled at industry creation
This commit is contained in:
parent
ed0b0b80d3
commit
b3893878bb
@ -1707,6 +1707,7 @@ static void PopulateStationsNearby(Industry *ind)
|
||||
|
||||
ForAllStationsAroundTiles(ind->location, [ind](Station *st, TileIndex tile) {
|
||||
if (!IsTileType(tile, MP_INDUSTRY) || GetIndustryIndex(tile) != ind->index) return false;
|
||||
ind->stations_near.insert(st);
|
||||
st->AddIndustryToDeliver(ind, tile);
|
||||
return false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user