Fixed voting crash when client console, chat, and SourceTV are enabled (bug 4676, r=fyren).

This commit is contained in:
Nicholas Hastings 2010-11-30 13:04:13 -05:00
parent 9ec7feb9ab
commit 043b2df345

View File

@ -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])
{