Codechange: use EnumRange over many enum loops

This commit is contained in:
Peter Nelson
2026-06-11 21:14:35 +01:00
committed by Peter Nelson
parent c991564e12
commit c3b0d71973
67 changed files with 136 additions and 141 deletions
+1 -1
View File
@@ -547,7 +547,7 @@ bool IsValidConsoleColour(ExtendedTextColour c)
/* A text colour from the palette is used; must be the company
* colour gradient, so it must be one of those. */
for (Colours i = Colours::Begin; i < Colours::End; i++) {
for (Colours i : EnumRange(Colours::End)) {
if (ExtendedTextColour{GetColourGradient(i, Shade::Normal)} == c) return true;
}