diff --git a/Core/DedicatedServer.cpp b/Core/DedicatedServer.cpp index 1b63b73..be42d9b 100644 --- a/Core/DedicatedServer.cpp +++ b/Core/DedicatedServer.cpp @@ -123,7 +123,7 @@ bool DedicatedServer::init() g_NetworkManager.Initialise(); - for (int i = 0; i < MINECRAFT_NET_MAX_PLAYERS; i++) + for (int i = 0; i < g_ServerMaxPlayers; i++) { IQNet::m_player[i].m_smallId = (BYTE)i; IQNet::m_player[i].m_isRemote = false;