Fix CA1825 warnings on empty array initialisation.
This commit is contained in:
committed by
abcdefg30
parent
727084c5fc
commit
07815143f1
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
@@ -28,7 +29,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string Name = "resources";
|
||||
|
||||
[Desc("Remap these indices to pre-defined colors.")]
|
||||
public readonly int[] RemapIndex = { };
|
||||
public readonly int[] RemapIndex = Array.Empty<int>();
|
||||
|
||||
[Desc("The fixed color to remap.")]
|
||||
public readonly Color Color;
|
||||
|
||||
Reference in New Issue
Block a user