diff --git a/ServerProject-DONT-IMPORT-INTO-UNITY/RelayHandler.cs b/ServerProject-DONT-IMPORT-INTO-UNITY/RelayHandler.cs index 6cd53cc..b44303d 100644 --- a/ServerProject-DONT-IMPORT-INTO-UNITY/RelayHandler.cs +++ b/ServerProject-DONT-IMPORT-INTO-UNITY/RelayHandler.cs @@ -33,7 +33,7 @@ namespace LightReflectiveMirror try { var data = segmentData.Array; - int pos = 0; + int pos = segmentData.Offset; OpCodes opcode = (OpCodes)data.ReadByte(ref pos); diff --git a/UnityTransport/LightReflectiveMirrorTransport.cs b/UnityTransport/LightReflectiveMirrorTransport.cs index 90657fd..ccc8339 100644 --- a/UnityTransport/LightReflectiveMirrorTransport.cs +++ b/UnityTransport/LightReflectiveMirrorTransport.cs @@ -91,7 +91,7 @@ namespace LightReflectiveMirror try { var data = segmentData.Array; - int pos = 0; + int pos = segmentData.Offset; OpCodes opcode = (OpCodes)data.ReadByte(ref pos);