mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Make SpriteSystem.LayerExists say layer index 0 is valid (#6305)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user