Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
|
||||
ScriptCargoList::ScriptCargoList()
|
||||
{
|
||||
const CargoSpec *cs;
|
||||
FOR_ALL_CARGOSPECS(cs) {
|
||||
for (const CargoSpec *cs : CargoSpec::Iterate()) {
|
||||
this->AddItem(cs->Index());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user