Skip to content

Commit baa6518

Browse files
committed
Fixed ClientId cast issue
1 parent 82f34e3 commit baa6518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/Data/NetId.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public NetId(uint clientId)
8181
/// <returns>The client identifier.</returns>
8282
public uint GetClientId()
8383
{
84-
return (uint)HostId | (ushort)((uint)(byte)(ConnectionId & 0xFF) << 8) | (ushort)((uint)(byte)((ConnectionId >> 8) & 0xFF) << 16) | (ushort)((uint)Meta << 24);
84+
return HostId | (uint)((ConnectionId & 0xFF) << 8) | (uint)(((ConnectionId >> 8) & 0xFF) << 16) | (uint)(Meta << 24);
8585
}
8686
// Rider generated vvv
8787
/// <summary>

0 commit comments

Comments
 (0)