Fix null check

This commit is contained in:
Nick J. Connors 2022-02-04 12:40:08 -05:00
parent fd8a95bb28
commit fd46cd7cc3

View File

@ -135,13 +135,14 @@ namespace NewHorizons.Utility
if (child == null)
{
Logger.LogWarning($"Couldn't find object in path ({names[i]})");
return null;
t = null;
break;
}
t = child;
}
go = t.gameObject;
go = t?.gameObject;
}
if(go == null)