Fix IDE0030

This commit is contained in:
RoosterDragon
2023-02-19 10:24:48 +00:00
committed by Pavel Penev
parent 8223161959
commit 99c1a4448b
4 changed files with 7 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Scripting.Global
var luaLabel = Ui.Root.Get("INGAME_ROOT").Get<LabelWidget>("MISSION_TEXT");
luaLabel.GetText = () => text;
var c = color.HasValue ? color.Value : Color.White;
var c = color ?? Color.White;
luaLabel.GetColor = () => c;
}