diff --git a/Assets/Scripts/Ally/Tooltip/TooltipManager.cs b/Assets/Scripts/Ally/Tooltip/TooltipManager.cs index babeb1c..5f23e6c 100644 --- a/Assets/Scripts/Ally/Tooltip/TooltipManager.cs +++ b/Assets/Scripts/Ally/Tooltip/TooltipManager.cs @@ -40,10 +40,10 @@ public class TooltipManager : Singleton private string DescriptionManager(UnitCard unitCard) { - if (unitCard) + if (unitCard != null) { string tooltipDescription; - if (unitCard?.TooltipString.Length > 0) + if (unitCard.TooltipString != null && unitCard.TooltipString.Length > 0) { tooltipDescription = unitCard.TooltipString; }