mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
More safe
This commit is contained in:
parent
c4fa5c6128
commit
3a5dca96bc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue