diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 6db92c0f8..c76bf9ec1 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -666,7 +666,7 @@ bool CMenus::RenderFilterHeader(CUIRect View, int FilterIndex) EditButtons.VSplitRight(Spacing, &EditButtons, 0); EditButtons.VSplitRight(ButtonHeight, &EditButtons, &Button); Button.Margin(2.0f, &Button); - if(FilterIndex > 1) + if(FilterIndex > 0 && (pFilter->Custom() > CBrowserFilter::FILTER_ALL || m_lFilters[FilterIndex-1].Custom() != CBrowserFilter::FILTER_STANDARD)) { if(DoButton_SpriteClean(IMAGE_TOOLICONS, SPRITE_TOOL_UP_A, &Button)) Move(true, FilterIndex); @@ -677,7 +677,7 @@ bool CMenus::RenderFilterHeader(CUIRect View, int FilterIndex) EditButtons.VSplitRight(Spacing, &EditButtons, 0); EditButtons.VSplitRight(ButtonHeight, &EditButtons, &Button); Button.Margin(2.0f, &Button); - if(FilterIndex > 0 && FilterIndex < m_lFilters.size()-1) + if(FilterIndex >= 0 && FilterIndex < m_lFilters.size()-1 && (pFilter->Custom() != CBrowserFilter::FILTER_STANDARD || m_lFilters[FilterIndex+1].Custom() > CBrowserFilter::FILTER_ALL)) { if(DoButton_SpriteClean(IMAGE_TOOLICONS, SPRITE_TOOL_DOWN_A, &Button)) Move(false, FilterIndex);