Fix new industry next to existing stations not filling industry stations_near

pull/383/head
Jonathan G Rennison 2 years ago
parent b6c967aae3
commit e3837e790d

@ -1778,6 +1778,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…
Cancel
Save