MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetRealItemIndex

Method GetRealItemIndex

core/MenuStyle_Base.cpp:746–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746unsigned int CBaseMenu::GetRealItemIndex(int client, unsigned int position)
747{
748 if (client > 0 && position < m_RandomMaps[client].size())
749 {
750 position = m_RandomMaps[client][position];
751 return m_items[position].index;
752 }
753
754 return position;
755}
756
757unsigned int CBaseMenu::GetItemCount()
758{

Callers 1

OnMenuSelectMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected