From 182b78fdc4e24161849745e0790b23d53ce4f5aa Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Sun, 5 May 2024 01:19:16 +0300 Subject: [PATCH] GameContext: Consistently call EndVote() before chat messages --- 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 e1dece20..1745a0c5 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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 {