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.Mods.Common.Traits;
|
||||
using OpenRA.Mods.Common.Traits.Render;
|
||||
using OpenRA.Traits;
|
||||
@@ -18,7 +19,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
||||
public class WithHarvesterSpriteBodyInfo : WithFacingSpriteBodyInfo, Requires<HarvesterInfo>
|
||||
{
|
||||
[Desc("Images switched between depending on fullness of harvester. Overrides RenderSprites.Image.")]
|
||||
public readonly string[] ImageByFullness = { };
|
||||
public readonly string[] ImageByFullness = Array.Empty<string>();
|
||||
|
||||
public override object Create(ActorInitializer init) { return new WithHarvesterSpriteBody(init, this); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user