Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops
This commit is contained in:
@@ -798,8 +798,7 @@ void RecomputePrices()
|
||||
}
|
||||
|
||||
/* Setup cargo payment */
|
||||
CargoSpec *cs;
|
||||
FOR_ALL_CARGOSPECS(cs) {
|
||||
for (CargoSpec *cs : CargoSpec::Iterate()) {
|
||||
cs->current_payment = ((int64)cs->initial_payment * _economy.inflation_payment) >> 16;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user