diff --git a/OpenRA.Mods.Cnc/Widgets/Logic/WorldTooltipLogic.cs b/OpenRA.Mods.Cnc/Widgets/Logic/WorldTooltipLogic.cs index c7af5b9871..64c1b1a0f5 100644 --- a/OpenRA.Mods.Cnc/Widgets/Logic/WorldTooltipLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/Logic/WorldTooltipLogic.cs @@ -41,6 +41,8 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic tooltipContainer.BeforeRender = () => { + if (wic == null || wic.ActorTooltip == null) return; + labelText = wic.TooltipType == Type.Unexplored ? "Unexplored Terrain" : wic.ActorTooltip.Name(); var textWidth = font.Measure(labelText).X;