We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fc4f3e commit 4b90d46Copy full SHA for 4b90d46
1 file changed
com.unity.netcode.gameobjects/Tests/Runtime/NetworkVariable/NetworkListTests.cs
@@ -294,7 +294,7 @@ private int[] Shuffle(List<int> list)
294
295
private List<NetworkObject> m_SpawnedObjects = new List<NetworkObject>();
296
internal const int ValueCount = 10;
297
- internal bool IsOwnerWriteTest;
+ internal static bool IsOwnerWriteTest;
298
internal NetworkManager LateJoinedClient;
299
internal static List<int> OwnerWriteExpectedValues = new List<int>();
300
@@ -473,7 +473,7 @@ public override void OnDestroy()
473
474
public override void OnNetworkSpawn()
475
{
476
- if (IsOwner)
+ if (NetworkListTests.IsOwnerWriteTest && IsOwner)
477
478
for (int i = 0; i < NetworkListTests.ValueCount; i++)
479
0 commit comments