Skip to content

Commit

Permalink
fix: fixing length used for sending unreliable
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Jun 23, 2021
1 parent 649f8fa commit 821e2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/SocketLayer/Peer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ internal void SendUnreliable(Connection connection, byte[] packet, int offset, i
// set header
buffer.array[0] = (byte)PacketType.Unreliable;

Send(connection, buffer.array, packet.Length + 1);
Send(connection, buffer.array, length + 1);
}
}

Expand Down

0 comments on commit 821e2d2

Please sign in to comment.