From 9ae27b8e60679bcbd937481a018282a215f420c3 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Wed, 7 Sep 2022 20:57:48 +0300 Subject: [PATCH] Fix team 0 being translated in SpawnSelectorTooltipLogic --- .../Widgets/Logic/Lobby/SpawnSelectorTooltipLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Lobby/SpawnSelectorTooltipLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Lobby/SpawnSelectorTooltipLogic.cs index 624cc4bb19..9a99c497fb 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Lobby/SpawnSelectorTooltipLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Lobby/SpawnSelectorTooltipLogic.cs @@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic flag.IsVisible = () => playerFaction != null; flag.GetImageCollection = () => "flags"; flag.GetImageName = () => playerFaction; - team.GetText = () => teamMessage.Update(playerTeam); + team.GetText = () => playerTeam > 0 ? teamMessage.Update(playerTeam) : ""; team.IsVisible = () => playerTeam > 0; } }