Codechange: Replace FOR_ALL_TOWNS with range-based for loops
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
|
||||
ScriptTownList::ScriptTownList()
|
||||
{
|
||||
Town *t;
|
||||
FOR_ALL_TOWNS(t) {
|
||||
for (const Town *t : Town::Iterate()) {
|
||||
this->AddItem(t->index);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user