Make sure m_MessageHandlers are initialized only once

This commit is contained in:
Paul Pacheco 2018-10-11 20:11:06 -05:00
parent 8716eb6cdf
commit 71ea8291d4

View File

@ -32,7 +32,7 @@ public class NetworkClient
int m_ServerPort;
int m_ClientId = -1;
Dictionary<short, NetworkMessageDelegate> m_MessageHandlers = new Dictionary<short, NetworkMessageDelegate>();
readonly Dictionary<short, NetworkMessageDelegate> m_MessageHandlers = new Dictionary<short, NetworkMessageDelegate>();
protected NetworkConnection m_Connection;
protected enum ConnectState