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 a4e476537..b4a7d6809 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -521,8 +521,7 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
}
}
- Sign *si;
- FOR_ALL_SIGNS(si) {
+ for (Sign *si : Sign::Iterate()) {
if (si->owner == old_owner) si->owner = new_owner == INVALID_OWNER ? OWNER_NONE : new_owner;
}