Codefix: Use bitset .None() or .Any() instead of comparing against an empty bitset. (#14327)

This commit is contained in:
Peter Nelson
2025-06-04 07:31:44 +01:00
committed by GitHub
parent 8f10f9fb5a
commit 2e78c24ba3
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ static ZoomLevels LoadSpriteV2(SpriteLoader::SpriteCollection &sprite, SpriteFil
uint8_t zoom = file.ReadByte();
bool is_wanted_colour_depth = (colour != SpriteComponents{} && (load_32bpp ? colour != SpriteComponent::Palette : colour == SpriteComponent::Palette));
bool is_wanted_colour_depth = (colour.Any() && (load_32bpp ? colour != SpriteComponent::Palette : colour == SpriteComponent::Palette));
bool is_wanted_zoom_lvl;
if (sprite_type != SpriteType::MapGen) {