Skip to content

Commit 54264cb

Browse files
committed
Fix wrong NetworkMangerOwner usage
1 parent aa487f1 commit 54264cb

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
@@ -391,7 +391,7 @@ private void CheckForInScenePlaced()
391391
public void DeferDespawn(int tickOffset, bool destroy = true)
392392
{
393393
// Ensure we log the DAMode message first as locking ownership is not allowed if not in DAMode.
394-
if (!NetworkManagerOwner.DistributedAuthorityMode)
394+
if (!NetworkManager.DistributedAuthorityMode)
395395
{
396396
if (NetworkManager.LogLevel <= LogLevel.Error)
397397
{

0 commit comments

Comments
 (0)