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

This commit is contained in:
Fyren 2009-05-12 17:27:45 -04:00
parent 1112dfffb3
commit 6a24b049cb

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;