Codechange: Use EnumBitSet.Any(). (#13512)

This commit is contained in:
Peter Nelson
2025-02-09 20:16:16 +00:00
committed by GitHub
parent 86841ba1f0
commit 1ed685b5c1
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -3202,7 +3202,7 @@ bool AfterLoadGame()
if (c->settings.renew_keep_length) wagon_removal.Set(c->index);
}
for (Group *g : Group::Iterate()) {
if (g->flags != GroupFlags{}) {
if (g->flags.Any()) {
/* Convert old replace_protection value to flag. */
g->flags = GroupFlag::ReplaceProtection;
}