From 6a24b049cb340adefb9825f074c399043756677d Mon Sep 17 00:00:00 2001 From: Fyren Date: Tue, 12 May 2009 17:27:45 -0400 Subject: [PATCH] Fixed early tv_enable causing crashes (bug 3766, r=dvander). --- core/PlayerManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index d3b72bf9..afdd3991 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -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;