Fixed early tv_enable causing crashes (bug 3766, r=dvander).

This commit is contained in:
Fyren 2009-05-12 12:37:12 -04:00
parent 5096aef6e7
commit 56c5012bef
2 changed files with 6 additions and 1 deletions

View File

@ -1327,6 +1327,11 @@ void PlayerManager::OnSourceModMaxPlayersChanged( int newvalue )
void PlayerManager::MaxPlayersChanged( int newvalue /*= -1*/ )
{
if (!m_FirstPass)
{
return;
}
if (newvalue == -1)
{
newvalue = gpGlobals->maxClients;

View File

@ -139,7 +139,7 @@ public:
private:
KTrie<Cookie *> cookieTrie;
SourceHook::List<CookieData *> clientData[MAXCLIENTS];
SourceHook::List<CookieData *> clientData[MAXCLIENTS+1];
bool connected[MAXCLIENTS+1];
bool statsLoaded[MAXCLIENTS+1];