diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 319091f85..7aa340139 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -629,9 +629,9 @@ void CGameContext::OnTick() aVoteChecked[i]) // don't count in votes by spectators if the admin doesn't want it continue; - if(m_VoteKick && - GetPlayerChar(m_VoteCreator) && GetPlayerChar(i) && - GetPlayerChar(m_VoteCreator)->Team() != GetPlayerChar(i)->Team()) + if(m_VoteKick && ((!m_apPlayers[i] || m_apPlayers[i]->GetTeam() == TEAM_SPECTATORS) || + (GetPlayerChar(m_VoteCreator) && GetPlayerChar(i) && + GetPlayerChar(m_VoteCreator)->Team() != GetPlayerChar(i)->Team()))) continue; if (m_apPlayers[i]->m_Afk)