Syntax. made list readonly (code smell)

This commit is contained in:
MrGadget1024 2021-05-23 06:30:19 -04:00
parent c8156292a5
commit e09b313571

View File

@ -1411,8 +1411,8 @@ static Serialization GetEntitySerialization(NetworkIdentity identity)
// NetworkLateUpdate called after any Update/FixedUpdate/LateUpdate
// (we add this to the UnityEngine in NetworkLoop)
static List<NetworkConnectionToClient> connectionsCopy =
new List<NetworkConnectionToClient>();
static readonly List<NetworkConnectionToClient> connectionsCopy = new List<NetworkConnectionToClient>();
internal static void NetworkLateUpdate()
{
// only process spawned & connections if active