Cleanup: Replace FOR_ALL_SORTED_CARGOSPECS macro with range iterator.
(cherry picked from commit 20ac0b4148
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
5e1b4e1844
commit
4fc433c871
@@ -1408,8 +1408,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
||||
CargoTypes cmask = args->GetInt64(SCC_CARGO_LIST);
|
||||
bool first = true;
|
||||
|
||||
const CargoSpec *cs;
|
||||
FOR_ALL_SORTED_CARGOSPECS(cs) {
|
||||
for (const auto &cs : _sorted_cargo_specs) {
|
||||
if (!HasBit(cmask, cs->Index())) continue;
|
||||
|
||||
if (buff >= last - 2) break; // ',' and ' '
|
||||
|
Reference in New Issue
Block a user