Skip to content

Commit eb73d3d

Browse files
committed
fix actual voting issues
1 parent 1e7ee1d commit eb73d3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/game/client/components/menus_ingame.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ bool CMenus::RenderServerControlServer(CUIRect MainView, bool UpdateScroll, bool
860860
else
861861
s_ListBox.DoStart(19.0f, TotalShown, 1, 3, s_CurVoteOption, &List);
862862

863-
i = 0;
863+
i = -1;
864864
for(CVoteOptionClient *pOption = GameClient()->m_Voting.m_pFirst; pOption; pOption = pOption->m_pNext, i++)
865865
{
866866
if(!m_FilterInput.IsEmpty() && !str_utf8_find_nocase(pOption->m_aDescription, m_FilterInput.GetString()))
@@ -881,6 +881,7 @@ bool CMenus::RenderServerControlServer(CUIRect MainView, bool UpdateScroll, bool
881881
if(NumVoteOptions < Total) {
882882
aIndices[NumVoteOptions] = i;
883883
}
884+
NumVoteOptions++;
884885
// aIndices[NumVoteOptions] = i;
885886

886887
const CListboxItem Item = s_ListBox.DoNextItem(pOption);

0 commit comments

Comments
 (0)