Make SpriteSystem.LayerExists say layer index 0 is valid (#6305)

This commit is contained in:
Centronias
2025-11-21 13:04:20 -08:00
committed by GitHub
parent a9ba9192ac
commit 6aa4fb9594

View File

@@ -17,7 +17,7 @@ public sealed partial class SpriteSystem
if (!_query.Resolve(sprite.Owner, ref sprite.Comp))
return false;
return index > 0 && index < sprite.Comp.Layers.Count;
return index >= 0 && index < sprite.Comp.Layers.Count;
}
public bool TryGetLayer(