1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

Fix #9867: Industry::stations_near not filled at industry creation

This commit is contained in:
Jonathan G Rennison
2022-04-24 23:58:24 +01:00
committed by Michael Lutz
parent ed0b0b80d3
commit b3893878bb

View File

@@ -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;
});