Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops

This commit is contained in:
glx
2019-12-17 21:22:15 +01:00
committed by Niels Martin Hansen
parent 847e5f33d4
commit 0b489f9924
7 changed files with 15 additions and 31 deletions

View File

@@ -29,8 +29,7 @@ static const SaveLoad _subsidies_desc[] = {
static void Save_SUBS()
{
Subsidy *s;
FOR_ALL_SUBSIDIES(s) {
for (Subsidy *s : Subsidy::Iterate()) {
SlSetArrayIndex(s->index);
SlObject(s, _subsidies_desc);
}