Skip to content

Commit

Permalink
Changed Add to AddRange
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornado-Technology committed Jan 17, 2025
1 parent 37001de commit 195fcf1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Robust.Client/Graphics/Overlays/OverlayManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,7 @@ public bool HasOverlay<T>() where T : Overlay
private void Sort()
{
_sortedOverlays.Clear();

foreach (var overlay in _overlays.Values)
{
_sortedOverlays.Add(overlay);
}

_sortedOverlays.AddRange(_overlays.Values);
_sortedOverlays.Sort(OverlayComparer.Instance);
}

Expand Down

0 comments on commit 195fcf1

Please sign in to comment.