Skip to content

Commit 200ea59

Browse files
Remove redundant ushort cast
Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>
1 parent 8724c37 commit 200ea59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ public override void Initialize(NetworkManager networkManager = null)
16221622
{
16231623
Debug.Log($"The port is set by a command line option. Using following connection data: {ConnectionData.Address}:{port}");
16241624
}
1625-
ConnectionData.Port = (ushort)port;
1625+
ConnectionData.Port = port;
16261626
}
16271627

16281628
m_RealTimeProvider = m_NetworkManager ? m_NetworkManager.RealTimeProvider : new RealTimeProvider();

0 commit comments

Comments
 (0)