Fixed allocation misscalculation on SpawnObjects

This commit is contained in:
Albin Corén 2018-04-02 16:54:11 +02:00
parent f258f0bb68
commit fd18634d32

View File

@ -199,7 +199,7 @@ namespace MLAPI.NetworkingManagerComponents.Core
netObject.ownerClientId = clientOwnerId.Value;
NetworkingManager.singleton.connectedClients[clientOwnerId.Value].OwnedObjects.Add(netObject);
}
using (MemoryStream stream = new MemoryStream(13))
using (MemoryStream stream = new MemoryStream(37))
{
using (BinaryWriter writer = new BinaryWriter(stream))
{