Fixed use of m_Players before init'd in PlayerManager (bug 5008, r=dvander).

This commit is contained in:
Nicholas Hastings 2011-07-06 22:34:23 -04:00
parent bb7f7eff51
commit d93413a4ae

View File

@ -949,6 +949,12 @@ void PlayerManager::ClearAdminId(AdminId id)
void PlayerManager::ClearAllAdmins()
{
// Players may not be inited if server hadn't been activated
if (!m_Players)
{
return;
}
int maxClients = gpGlobals->maxClients;
for (int i=1; i<=maxClients; i++)
{
@ -963,6 +969,12 @@ const char *PlayerManager::GetPassInfoVar()
void PlayerManager::RecheckAnyAdmins()
{
// Players may not be inited if server hadn't been activated
if (!m_Players)
{
return;
}
int maxClients = gpGlobals->maxClients;
for (int i=1; i<=maxClients; i++)
{