SendToReadyObservers: use explicit type

This commit is contained in:
vis2k 2022-11-10 20:47:12 +01:00
parent 5ffdd06602
commit 940a467035

View File

@ -414,7 +414,7 @@ public static void SendToReadyObservers<T>(NetworkIdentity identity, T message,
ArraySegment<byte> segment = writer.ToArraySegment();
int count = 0;
foreach (NetworkConnection conn in identity.observers.Values)
foreach (NetworkConnectionToClient conn in identity.observers.Values)
{
bool isOwner = conn == identity.connectionToClient;
if ((!isOwner || includeOwner) && conn.isReady)