Fixed use of m_Players before init'd in PlayerManager (bug 5008, r=dvander).
This commit is contained in:
parent
bb7f7eff51
commit
d93413a4ae
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user