Skip to content

Commit

Permalink
fix: fixing uses of message
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Mar 12, 2021
1 parent dcb79c1 commit f2a5522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirage/Runtime/NetworkPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public virtual void Send<T>(T message, int channelId = Channel.Reliable)
using (PooledNetworkWriter writer = NetworkWriterPool.GetWriter())
{
// pack message and send allocation free
MessagePacker.Pack(msg, writer);
NetworkDiagnostics.OnSend(msg, channelId, writer.Length, 1);
MessagePacker.Pack(message, writer);
NetworkDiagnostics.OnSend(message, channelId, writer.Length, 1);
Send(writer.ToArraySegment(), channelId);
}
}
Expand Down

0 comments on commit f2a5522

Please sign in to comment.