From 15c5ed1dd38ea251ffe99e0227483ef45989ce0d Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 30 Nov 2010 13:04:13 -0500 Subject: [PATCH] Fixed voting crash when client console, chat, and SourceTV are enabled (bug 4676, r=fyren). --- core/MenuVoting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/MenuVoting.cpp b/core/MenuVoting.cpp index a8641b5e..8b4eaaaf 100644 --- a/core/MenuVoting.cpp +++ b/core/MenuVoting.cpp @@ -538,7 +538,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]) {