Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Fixed transports using segment offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek-R-S committed Jan 17, 2021
1 parent 5e1b43b commit 5ca8053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ServerProject-DONT-IMPORT-INTO-UNITY/RelayHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void HandleMessage(int clientId, ArraySegment<byte> segmentData, int chan
try
{
var data = segmentData.Array;
int pos = 0;
int pos = segmentData.Offset;

OpCodes opcode = (OpCodes)data.ReadByte(ref pos);

Expand Down
2 changes: 1 addition & 1 deletion UnityTransport/LightReflectiveMirrorTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void DataReceived(ArraySegment<byte> segmentData, int channel)
try
{
var data = segmentData.Array;
int pos = 0;
int pos = segmentData.Offset;

OpCodes opcode = (OpCodes)data.ReadByte(ref pos);

Expand Down

0 comments on commit 5ca8053

Please sign in to comment.