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:
@@ -58,7 +58,7 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
|
||||
cachedPos = WPos.Zero;
|
||||
cachedLength = WVec.Zero;
|
||||
cache = new IFinalizedRenderable[] { };
|
||||
cache = Array.Empty<IFinalizedRenderable>();
|
||||
}
|
||||
|
||||
public WPos Pos => pos;
|
||||
|
||||
Reference in New Issue
Block a user