potential crash fix -- api inconsistency again?

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401369
This commit is contained in:
David Anderson 2007-08-21 16:26:15 +00:00
parent 89899de7b0
commit aa1d2b4c9e

View File

@ -599,6 +599,11 @@ void PlayerManager::OnClientSettingsChanged(edict_t *pEntity)
cell_t res;
int client = engine->IndexOfEdict(pEntity);
if (!m_Players[client].IsConnected())
{
return;
}
m_clinfochanged->PushCell(engine->IndexOfEdict(pEntity));
m_clinfochanged->Execute(&res, NULL);