diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 9fc01bba6..f75df9582 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -820,9 +820,8 @@ internal static void HideForConnection(NetworkIdentity identity, NetworkConnecti // call this to make all the clients not ready, such as when changing levels. public static void SetAllClientsNotReady() { - foreach (KeyValuePair kvp in connections) + foreach (NetworkConnection conn in connections.Values) { - NetworkConnection conn = kvp.Value; SetClientNotReady(conn); } }