Fixed unnecessary zero-length array allocations
Changed all currently present zero-length array allocations in the codebase to use `Array.Empty` instead.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
|
||||
readonly WorldRenderer worldRenderer;
|
||||
|
||||
IActorPreview[] preview = new IActorPreview[0];
|
||||
IActorPreview[] preview = Array.Empty<IActorPreview>();
|
||||
public int2 PreviewOffset { get; private set; }
|
||||
public int2 IdealPreviewSize { get; private set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user