1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 23:26:32 +09:00

- Fixed various number to avoid re-allocating netbuffer storage

This commit is contained in:
lidgren
2012-09-24 07:09:30 +00:00
parent 2e7761e113
commit a28bb5439c
4 changed files with 13 additions and 11 deletions

View File

@@ -143,7 +143,7 @@ namespace Lidgren.Network
private void SendMTUSuccess(int size)
{
NetOutgoingMessage om = m_peer.CreateMessage(1);
NetOutgoingMessage om = m_peer.CreateMessage(4);
om.Write(size);
om.m_messageType = NetMessageType.ExpandMTUSuccess;
int len = om.Encode(m_peer.m_sendBuffer, 0, 0);