We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a793dc6 commit cf34bc3Copy full SHA for cf34bc3
MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs
@@ -302,11 +302,11 @@ internal void SyncVarInit()
302
}
303
304
305
- if(dirtyFields.Length > 255)
+ dirtyFields = new bool[syncedFields.Count];
306
+ if (dirtyFields.Length > 255)
307
{
308
Debug.LogError("MLAPI: You can not have more than 255 SyncVar's per NetworkedBehaviour!");
309
- dirtyFields = new bool[syncedFields.Count];
310
311
312
internal void OnSyncVarUpdate(object value, byte fieldIndex)
0 commit comments