Fix CA1841

This commit is contained in:
RoosterDragon
2023-03-12 16:26:17 +00:00
committed by abcdefg30
parent 8fe82ed976
commit 07fb5e8027
2 changed files with 4 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Lint
if (string.IsNullOrEmpty(voice))
continue;
if (!soundInfo.Voices.Keys.Contains(voice))
if (!soundInfo.Voices.ContainsKey(voice))
emitError($"Actor {actorInfo.Name} using voice set {voiceSet} does not define {voice} voice required by {traitInfo}.");
}
}