Fixed selectedAuthor in ModBrowserLogic not being the correct value if mod.Author is null

This commit is contained in:
ScottNZ
2014-06-14 01:37:39 +12:00
parent 1169211893
commit 91bc1acca3

View File

@@ -150,7 +150,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
void SelectMod(ModMetadata mod) void SelectMod(ModMetadata mod)
{ {
selectedMod = mod; selectedMod = mod;
selectedAuthor = "By " + mod.Author ?? "unknown author"; selectedAuthor = "By " + (mod.Author ?? "unknown author");
selectedDescription = (mod.Description ?? "").Replace("\\n", "\n"); selectedDescription = (mod.Description ?? "").Replace("\\n", "\n");
var selectedIndex = Array.IndexOf(allMods, mod); var selectedIndex = Array.IndexOf(allMods, mod);
if (selectedIndex - modOffset > 4) if (selectedIndex - modOffset > 4)