Skip to content

Commit 5817771

Browse files
committed
Fix RTV breaking if an ongoing extend vote succeeds
1 parent 949c221 commit 5817771

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/votemanager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,9 @@ bool CVoteManager::CheckRTVStatus()
705705
m_RTVState = ERTVState::POST_RTV_SUCCESSFULL;
706706
m_ExtendState = EExtendState::POST_RTV;
707707

708+
if (g_pPanoramaVoteHandler->IsVoteInProgress())
709+
g_pPanoramaVoteHandler->EndVote(YesNoVoteEndReason::VoteEnd_Cancelled);
710+
708711
static ConVarRefAbstract mp_timelimit("mp_timelimit");
709712
mp_timelimit.SetFloat(0.01);
710713

0 commit comments

Comments
 (0)