mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Make sure m_MessageHandlers are initialized only once
This commit is contained in:
parent
8716eb6cdf
commit
71ea8291d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user