Don't pass unconnected clients into OnClientCommand (bug 3732, r=fyren).

This commit is contained in:
David Anderson
2009-10-26 23:51:39 -07:00
parent 0931c6a7e1
commit 359146f60b
2 changed files with 9 additions and 3 deletions
+6 -3
View File
@@ -741,9 +741,12 @@ void PlayerManager::OnClientCommand(edict_t *pEntity)
}
cell_t res2 = Pl_Continue;
m_clcommand->PushCell(client);
m_clcommand->PushCell(argcount);
m_clcommand->Execute(&res2, NULL);
if (pPlayer->IsInGame())
{
m_clcommand->PushCell(client);
m_clcommand->PushCell(argcount);
m_clcommand->Execute(&res2, NULL);
}
if (res2 > res)
{