From 71ea8291d49791bfefc69c699567ad2f2b27928c Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Thu, 11 Oct 2018 20:11:06 -0500 Subject: [PATCH] Make sure m_MessageHandlers are initialized only once --- Mirror/Runtime/NetworkClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mirror/Runtime/NetworkClient.cs b/Mirror/Runtime/NetworkClient.cs index 313860c57..fb67bc506 100644 --- a/Mirror/Runtime/NetworkClient.cs +++ b/Mirror/Runtime/NetworkClient.cs @@ -32,7 +32,7 @@ public class NetworkClient int m_ServerPort; int m_ClientId = -1; - Dictionary m_MessageHandlers = new Dictionary(); + readonly Dictionary m_MessageHandlers = new Dictionary(); protected NetworkConnection m_Connection; protected enum ConnectState