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