mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix null check
This commit is contained in:
parent
fd8a95bb28
commit
fd46cd7cc3
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user