mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
Codechange: Replace FOR_ALL_SIGNS with range-based for loops
This commit is contained in:
@@ -16,8 +16,7 @@
|
||||
|
||||
ScriptSignList::ScriptSignList()
|
||||
{
|
||||
Sign *s;
|
||||
FOR_ALL_SIGNS(s) {
|
||||
for (const Sign *s : Sign::Iterate()) {
|
||||
if (ScriptSign::IsValidSign(s->index)) this->AddItem(s->index);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user