From 195fcf1840f6e841a8665ba431072b045d8f07c9 Mon Sep 17 00:00:00 2001 From: Tornado Tech <54727692+Tornado-Technology@users.noreply.github.com> Date: Sat, 18 Jan 2025 02:29:32 +1000 Subject: [PATCH] Changed Add to AddRange --- Robust.Client/Graphics/Overlays/OverlayManager.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Robust.Client/Graphics/Overlays/OverlayManager.cs b/Robust.Client/Graphics/Overlays/OverlayManager.cs index dc22c9cda94..79357083fc5 100644 --- a/Robust.Client/Graphics/Overlays/OverlayManager.cs +++ b/Robust.Client/Graphics/Overlays/OverlayManager.cs @@ -123,12 +123,7 @@ public bool HasOverlay() 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); }