diff options
author | glx <glx@openttd.org> | 2019-12-17 21:22:15 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-12-21 20:13:03 +0100 |
commit | 0b489f99249a8c62ee3826e490ed17f29377581c (patch) | |
tree | c5289a92bbb98d40d38e3320276e6e02f732f633 /src/script | |
parent | 847e5f33d4749568cda696b8940ec10b540bd6fb (diff) | |
download | openttd-0b489f99249a8c62ee3826e490ed17f29377581c.tar.xz |
Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_subsidylist.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/api/script_subsidylist.cpp b/src/script/api/script_subsidylist.cpp index 600b6640c..b92f1398c 100644 --- a/src/script/api/script_subsidylist.cpp +++ b/src/script/api/script_subsidylist.cpp @@ -15,8 +15,7 @@ ScriptSubsidyList::ScriptSubsidyList() { - const Subsidy *s; - FOR_ALL_SUBSIDIES(s) { + for (const Subsidy *s : Subsidy::Iterate()) { this->AddItem(s->index); } } |