summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 716446ba9..9982e79e0 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -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;
}