We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7129fd7 commit 39d7ef1Copy full SHA for 39d7ef1
1 file changed
com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
@@ -3232,10 +3232,7 @@ internal void SynchronizeNetworkBehaviours<T>(ref BufferSerializer<T> serializer
3232
{
3233
reader.ReadValueSafe(out ushort networkBehaviourId);
3234
var networkBehaviour = GetNetworkBehaviourAtOrderIndex(networkBehaviourId);
3235
- if (networkBehaviour != null)
3236
- {
3237
- networkBehaviour.Synchronize(ref serializer, targetClientId);
3238
- }
+ networkBehaviour?.Synchronize(ref serializer, targetClientId);
3239
}
3240
3241
0 commit comments