Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
duyca committed Sep 30, 2023
1 parent 65f072e commit 63e98c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Assets/FishNet/Runtime/Object/NetworkBehaviour.SyncTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using FishNet.Transporting;
using FishNet.Utility.Extension;
using System.Collections.Generic;
using UnityEngine;

namespace FishNet.Object
{
Expand Down Expand Up @@ -161,7 +162,7 @@ private void InitializeOnceSyncTypes(bool asServer)
}

//Build writers for observers and owner.
_syncTypeWriters = ArrayPool<SyncTypeWriter>.Shared.Rent(_readPermissions.Length);
_syncTypeWriters = new SyncTypeWriter[_readPermissions.Length];
for (var i = 0; i < _syncTypeWriters.Length; i++)
_syncTypeWriters[i] = new SyncTypeWriter(_readPermissions[i]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ private void OnDestroy()
{
foreach (var syncType in _syncTypeWriters)
syncType.Dispose();
ArrayPool<SyncTypeWriter>.Shared.Return(_syncTypeWriters);
}
}
}
2 changes: 1 addition & 1 deletion Assets/FishNet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.fishnet",
"displayName": "FishNet - Unity Networking Evolved",
"description": "FishNet - Unity Networking Evolved",
"version": "3.7.15",
"version": "3.7.16",
"unity": "2021.3",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 63e98c0

Please sign in to comment.