Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops
(cherry picked from commit 9a8756d7ed
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
dfe616bef4
commit
050b95e351
@@ -3774,8 +3774,7 @@ static void UpdateStationRating(Station *st)
|
||||
byte_inc_sat(&st->time_since_load);
|
||||
byte_inc_sat(&st->time_since_unload);
|
||||
|
||||
const CargoSpec *cs;
|
||||
FOR_ALL_CARGOSPECS(cs) {
|
||||
for (const CargoSpec *cs : CargoSpec::Iterate()) {
|
||||
GoodsEntry *ge = &st->goods[cs->Index()];
|
||||
/* Slowly increase the rating back to his original level in the case we
|
||||
* didn't deliver cargo yet to this station. This happens when a bribe
|
||||
|
Reference in New Issue
Block a user