Skip to content

Commit c6fdef0

Browse files
committed
fix silly mistake with array sizes
1 parent 33d0017 commit c6fdef0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/game/client/components/menus_browser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,12 +868,12 @@ void CMenus::RenderServerbrowserFilters(CUIRect View)
868868

869869
GametypeFilters.Draw(ColorRGBA(0.0f, 0.0f, 0.0f, 0.15f), IGraphics::CORNER_B, 4.0f);
870870

871-
static CButtonContainer s_Buttons[11]; // if it's 10 it'll cause issues if the country/type filter is enabled... for some reason. thus +1
871+
static CButtonContainer s_Buttons[16];
872872

873873
if (!(GametypeFilters.h < RowHeight)) {
874874
bool isSelected = str_comp(Config()->m_BrFilterGametype, "") == 0;
875875
GametypeFilters.HSplitTop(RowHeight, &Button, &GametypeFilters);
876-
if(DoButton_CheckBox(&s_Buttons[10], "No filter", isSelected, &Button))
876+
if(DoButton_CheckBox(&s_Buttons[15], "No filter", isSelected, &Button))
877877
{
878878
str_copy(Config()->m_BrFilterGametype, "");
879879
Client()->ServerBrowserUpdate();
@@ -886,7 +886,7 @@ void CMenus::RenderServerbrowserFilters(CUIRect View)
886886
pHead = str_skip_whitespaces_const(pHead);
887887
pGametypeNext = pHead;
888888

889-
for (int i = 0; i < 9; i++)
889+
for (int i = 0; i < 15; i++)
890890
{
891891
int Len = 0;
892892
while(*pHead && !str_isspace(*pHead))

0 commit comments

Comments
 (0)