potential crash fix -- api inconsistency again?
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401369
This commit is contained in:
parent
89899de7b0
commit
aa1d2b4c9e
@ -599,6 +599,11 @@ void PlayerManager::OnClientSettingsChanged(edict_t *pEntity)
|
|||||||
cell_t res;
|
cell_t res;
|
||||||
int client = engine->IndexOfEdict(pEntity);
|
int client = engine->IndexOfEdict(pEntity);
|
||||||
|
|
||||||
|
if (!m_Players[client].IsConnected())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_clinfochanged->PushCell(engine->IndexOfEdict(pEntity));
|
m_clinfochanged->PushCell(engine->IndexOfEdict(pEntity));
|
||||||
m_clinfochanged->Execute(&res, NULL);
|
m_clinfochanged->Execute(&res, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user