From dd4f345cb62f82a00ded8be8e9e7e6ab350f0539 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Wed, 17 Jan 2024 04:50:06 -0500 Subject: [PATCH] Better naming --- Assets/Mirror/Core/NetworkIdentity.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Core/NetworkIdentity.cs b/Assets/Mirror/Core/NetworkIdentity.cs index 8b084a497..0e3cdd078 100644 --- a/Assets/Mirror/Core/NetworkIdentity.cs +++ b/Assets/Mirror/Core/NetworkIdentity.cs @@ -294,9 +294,9 @@ internal static uint GetNextNetworkId() // Older Unity versions don't have TryPeek. if (reuseNetworkIds && netIdQueue.Count > 0 && netIdQueue.Peek().timeAvailable < NetworkTime.time) { - ReusableNetworkId entry = netIdQueue.Dequeue(); - //Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, $"[GetNextNetworkId] Reusing NetworkId {entry.reusableNetId}."); - return entry.reusableNetId; + ReusableNetworkId nextNetId = netIdQueue.Dequeue(); + Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, $"[GetNextNetworkId] Reusing NetworkId {nextNetId.reusableNetId}."); + return nextNetId.reusableNetId; } return nextNetworkId++;