From 3a5dca96bcf1b4505a421b52f07e2e1cb922c70a Mon Sep 17 00:00:00 2001 From: btd Date: Tue, 14 Sep 2010 20:58:18 +0400 Subject: [PATCH] More safe --- src/game/server/gamecontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 4fa2bb783..c92b08821 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -428,7 +428,7 @@ void CGameContext::OnTick() if(!m_apPlayers[i] || m_apPlayers[i]->GetTeam() == -1 || aVoteChecked[i]) // don't count in votes by spectators continue; if(m_VoteKick && - GetPlayerChar(m_VoteCreator) && + GetPlayerChar(m_VoteCreator) && GetPlayerChar(i) && GetPlayerChar(m_VoteCreator)->Team() != GetPlayerChar(i)->Team()) continue; int ActVote = m_apPlayers[i]->m_Vote; int ActVotePos = m_apPlayers[i]->m_VotePos;