Skip to content

Commit f817796

Browse files
committed
Revert null check removal for Log
1 parent a166482 commit f817796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3589,7 +3589,7 @@ internal void OnNetworkBehaviourDestroyed(NetworkBehaviour networkBehaviour)
35893589
{
35903590
if (networkBehaviour.IsSpawned && IsSpawned)
35913591
{
3592-
if (NetworkManager.LogLevel == LogLevel.Developer)
3592+
if (NetworkManager?.LogLevel == LogLevel.Developer)
35933593
{
35943594
NetworkLog.LogWarning($"{nameof(NetworkBehaviour)}-{networkBehaviour.name} is being destroyed while {nameof(NetworkObject)}-{name} is still spawned! (could break state synchronization)");
35953595
}

0 commit comments

Comments
 (0)