Fixed invalid client errors from late-load of SourceTV (bug 4881, r=fyren).
authorNicholas Hastings <skamonkey@gmail.com>
Wed May 25 08:31:12 2011 -0400 (2011-05-25)
changeset 3281f1f9c27d290b
parent 3280 7aea1316eff7
child 3282 65eb3df32b1c
Fixed invalid client errors from late-load of SourceTV (bug 4881, r=fyren).
core/PlayerManager.cpp
     1.1 --- a/core/PlayerManager.cpp	Wed May 25 08:27:27 2011 -0400
     1.2 +++ b/core/PlayerManager.cpp	Wed May 25 08:31:12 2011 -0400
     1.3 @@ -235,7 +235,10 @@
     1.4  	if (!m_FirstPass)
     1.5  	{
     1.6  		/* Initialize all players */
     1.7 -		m_maxClients = clientMax;
     1.8 +
     1.9 +		// clientMax will not necessarily be correct here (such as on late SourceTV enable)
    1.10 +		m_maxClients = gpGlobals->maxClients;
    1.11 +
    1.12  		m_PlayerCount = 0;
    1.13  		m_Players = new CPlayer[ABSOLUTE_PLAYER_LIMIT + 1];
    1.14  		m_AuthQueue = new unsigned int[ABSOLUTE_PLAYER_LIMIT + 1];