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.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
@@ -22,10 +23,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string Condition = null;
|
||||
|
||||
[Desc("Play a random sound from this list when enabled.")]
|
||||
public readonly string[] EnabledSounds = { };
|
||||
public readonly string[] EnabledSounds = Array.Empty<string>();
|
||||
|
||||
[Desc("Play a random sound from this list when disabled.")]
|
||||
public readonly string[] DisabledSounds = { };
|
||||
public readonly string[] DisabledSounds = Array.Empty<string>();
|
||||
|
||||
[Desc("Levels of damage at which to grant the condition.")]
|
||||
public readonly DamageState ValidDamageStates = DamageState.Heavy | DamageState.Critical;
|
||||
|
||||
Reference in New Issue
Block a user