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 47c73bd52..49fcddf26 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -345,8 +345,7 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
Company::Get(old_owner)->money = UINT64_MAX >> 2; // jackpot ;p
}
- Subsidy *s;
- FOR_ALL_SUBSIDIES(s) {
+ for (Subsidy *s : Subsidy::Iterate()) {
if (s->awarded == old_owner) {
if (new_owner == INVALID_OWNER) {
delete s;