Fixed voting crash when client console, chat, and SourceTV are enabled (bug 4676, r=fyren).
This commit is contained in:
parent
9ec7feb9ab
commit
043b2df345
@ -540,7 +540,7 @@ void VoteMenuHandler::OnMenuSelect(IBaseMenu *menu, int client, unsigned int ite
|
||||
CPlayer *pPlayer = g_Players.GetPlayerByIndex(i);
|
||||
assert(pPlayer);
|
||||
|
||||
if (pPlayer->IsInGame())
|
||||
if (pPlayer->IsInGame() && !pPlayer->IsFakeClient())
|
||||
{
|
||||
if (m_Revoting[client])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user