Codechange: Use reference for non-optional StationList parameter. (#13092)

This commit is contained in:
Peter Nelson
2024-11-19 20:33:32 +00:00
committed by GitHub
parent 640a270ed6
commit 6c09dcdd66
5 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -535,7 +535,7 @@ static bool TransportIndustryGoods(TileIndex tile)
p.history[THIS_MONTH].production += cw;
uint am = MoveGoodsToStation(p.cargo, cw, SourceType::Industry, i->index, &i->stations_near, i->exclusive_consumer);
uint am = MoveGoodsToStation(p.cargo, cw, SourceType::Industry, i->index, i->stations_near, i->exclusive_consumer);
p.history[THIS_MONTH].transported += am;
moved_cargo |= (am != 0);