From 36fcbec69fddb79f0bcec2d8b3bf87151b96dbdb Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 11 Dec 2021 13:03:29 +0100 Subject: [PATCH] Slightly reduce allocations in GameScreenBase --- Content.Client/Viewport/GameScreenBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Viewport/GameScreenBase.cs b/Content.Client/Viewport/GameScreenBase.cs index fffcbed06c2..965334232f5 100644 --- a/Content.Client/Viewport/GameScreenBase.cs +++ b/Content.Client/Viewport/GameScreenBase.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; @@ -175,7 +176,7 @@ namespace Content.Client.Viewport } if (foundEntities.Count == 0) - return new List(); + return Array.Empty(); foundEntities.Sort(new ClickableEntityComparer(_entityManager)); // 0 is the top element.