From 043b2df3458c3e0427581c02a963f96689154512 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 ddd6d1fb..8b69fd8a 100644 --- a/core/MenuVoting.cpp +++ b/core/MenuVoting.cpp @@ -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]) {