Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit 5c34a28

Browse files
check
1 parent 6354e16 commit 5c34a28

File tree

1 file changed

+5
-0
lines changed
  • PlagueButtonAPI/PlagueButtonAPI/Controls/Base Classes

1 file changed

+5
-0
lines changed

PlagueButtonAPI/PlagueButtonAPI/Controls/Base Classes/Button.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ public void SetIconColor(Color color)
5252

5353
public void SetTooltip(string newTooltip)
5454
{
55+
if (tooltip == null)
56+
{
57+
return;
58+
}
59+
5560
tooltip.field_Public_String_0 = newTooltip;
5661
}
5762
}

0 commit comments

Comments
 (0)