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:
@@ -279,7 +279,7 @@ namespace OpenRA.Scripting
|
||||
return outer.SelectMany(i => i.GetGenericArguments());
|
||||
}
|
||||
|
||||
static readonly object[] NoArguments = new object[0];
|
||||
static readonly object[] NoArguments = Array.Empty<object>();
|
||||
Type[] FilterActorCommands(ActorInfo ai)
|
||||
{
|
||||
return FilterCommands(ai, knownActorCommands);
|
||||
|
||||
Reference in New Issue
Block a user