fix: Report correct channel to profiler in SendToObservers

This commit is contained in:
Paul Pacheco 2020-03-15 11:54:39 -05:00
parent ff445e630c
commit 0b84d4c5e1

View File

@ -250,7 +250,7 @@ static void SendToObservers<T>(NetworkIdentity identity, T msg, int channelId =
NetworkConnectionToClient.Send(connectionIdsCache, segment, channelId);
}
NetworkDiagnostics.OnSend(msg, Channels.DefaultReliable, segment.Count, identity.observers.Count);
NetworkDiagnostics.OnSend(msg, channelId, segment.Count, identity.observers.Count);
}
}
}