From 91bc1acca3b16ea01588520ce4053f54d2e814c5 Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Sat, 14 Jun 2014 01:37:39 +1200 Subject: [PATCH] Fixed selectedAuthor in ModBrowserLogic not being the correct value if mod.Author is null --- OpenRA.Mods.RA/Widgets/Logic/ModBrowserLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Widgets/Logic/ModBrowserLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ModBrowserLogic.cs index 20baddfc9d..c0395ff430 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ModBrowserLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ModBrowserLogic.cs @@ -150,7 +150,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic void SelectMod(ModMetadata mod) { selectedMod = mod; - selectedAuthor = "By " + mod.Author ?? "unknown author"; + selectedAuthor = "By " + (mod.Author ?? "unknown author"); selectedDescription = (mod.Description ?? "").Replace("\\n", "\n"); var selectedIndex = Array.IndexOf(allMods, mod); if (selectedIndex - modOffset > 4)