Merge pull request #1389 from paulpach/privatevislist

fix: it is not safe to modify this outside this class
This commit is contained in:
vis2k 2020-01-02 10:35:28 +01:00 committed by GitHub
commit 217f880191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ namespace Mirror
/// </remarks>
public abstract class NetworkConnection : IDisposable
{
public readonly HashSet<NetworkIdentity> visList = new HashSet<NetworkIdentity>();
readonly HashSet<NetworkIdentity> visList = new HashSet<NetworkIdentity>();
Dictionary<int, NetworkMessageDelegate> messageHandlers;