Fixed invalid client errors from late-load of SourceTV (bug 4881, r=fyren).

This commit is contained in:
Nicholas Hastings 2011-05-25 08:31:12 -04:00
parent 7527f441ae
commit d7fb6b2892

View File

@ -235,7 +235,10 @@ void PlayerManager::OnServerActivate(edict_t *pEdictList, int edictCount, int cl
if (!m_FirstPass)
{
/* Initialize all players */
m_maxClients = clientMax;
// clientMax will not necessarily be correct here (such as on late SourceTV enable)
m_maxClients = gpGlobals->maxClients;
m_PlayerCount = 0;
m_Players = new CPlayer[ABSOLUTE_PLAYER_LIMIT + 1];
m_AuthQueue = new unsigned int[ABSOLUTE_PLAYER_LIMIT + 1];