Fix CA1854

This commit is contained in:
RoosterDragon
2023-03-12 17:38:38 +00:00
committed by abcdefg30
parent 56fe08cb00
commit 231bf01f18
26 changed files with 93 additions and 86 deletions

View File

@@ -32,8 +32,8 @@ namespace OpenRA.Mods.Common.LoadScreens
{
base.Init(modData, info);
if (info.ContainsKey("Text"))
messages = info["Text"].Split(',');
if (info.TryGetValue("Text", out var text))
messages = text.Split(',');
}
public override void DisplayInner(Renderer r, Sheet s, int density)