Skip to content

Commit

Permalink
GameContext: Consistently call EndVote() before chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed May 4, 2024
1 parent d2d2a1a commit 182b78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/gamecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1441,8 +1441,8 @@ void CGameContext::OnTick()
// abort the kick-vote on player-leave
if(m_VoteCloseTime == -1)
{
SendChat(-1, CGameContext::CHAT_ALL, "Vote aborted");
EndVote();
SendChat(-1, CGameContext::CHAT_ALL, "Vote aborted");
}
else
{
Expand Down

0 comments on commit 182b78f

Please sign in to comment.