Skip to content

Commit

Permalink
FFQuantityPanel: Do not reserve space for disabled items
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWillden committed Nov 1, 2020
1 parent db02a3b commit 91718e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cl_dll/ff/vgui/ff_quantitypanel.cpp
Expand Up @@ -709,6 +709,11 @@ namespace vgui
if(i >= iSkipFromIndex)
break;

if(m_DarQuantityItems[i]->IsDisabled())
{
continue;
}

int iPosX, iPosY;

iPosX = (/*m_iItemPositionX + */iColumnWidths + iColumn * m_iItemMarginHorizontal);
Expand Down

0 comments on commit 91718e3

Please sign in to comment.