diff --git a/core/MenuStyle_Base.cpp b/core/MenuStyle_Base.cpp index a7be3e2f..59d58126 100644 --- a/core/MenuStyle_Base.cpp +++ b/core/MenuStyle_Base.cpp @@ -617,8 +617,6 @@ bool CBaseMenu::AppendItem(const char *info, const ItemDrawInfo &draw) item.displayString = m_Strings.AddString(draw.display); } item.style = draw.style; - item.access = draw.access; - m_items.push_back(item); @@ -645,7 +643,6 @@ bool CBaseMenu::InsertItem(unsigned int position, const char *info, const ItemDr item.displayString = m_Strings.AddString(draw.display); } item.style = draw.style; - item.access = draw.access; CVector::iterator iter = m_items.iterAt(position); m_items.insert(iter, item); diff --git a/public/IMenuManager.h b/public/IMenuManager.h index 3be103cc..a973287d 100644 --- a/public/IMenuManager.h +++ b/public/IMenuManager.h @@ -108,12 +108,11 @@ namespace SourceMod { ItemDrawInfo(const char *DISPLAY=NULL, unsigned int STYLE=ITEMDRAW_DEFAULT, unsigned int FLAGS=0, const char *HELPTEXT=NULL) - : display(DISPLAY), style(STYLE), access(FLAGS) + : display(DISPLAY), style(STYLE) { } const char *display; /**< Display text (NULL for none) */ unsigned int style; /**< ITEMDRAW style flags */ - unsigned int access; /**< Access flags required to see */ }; /**