Simon Jackson 2022-04-23 11:45:32 +01:00
parent ca090d1797
commit 771c7776c0
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ namespace UnityEngine.UI.Extensions
protected override void OnEnable() protected override void OnEnable()
{ {
base.OnEnable(); base.OnEnable();
if (m_points?.Length == 0) if (m_points == null || m_points?.Length == 0)
{ {
m_points = new Vector2[1]; m_points = new Vector2[1];
} }