MCPcopy Create free account
hub / github.com/cppla/ServerStatus / Get

Method Get

server/src/netban.cpp:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template<class T, int HashCount>
222typename CNetBan::CBan<T> *CNetBan::CBanPool<T, HashCount>::Get(int Index) const
223{
224 if(Index < 0 || Index >= Num())
225 return 0;
226
227 for(CNetBan::CBan<T> *pBan = m_pFirstUsed; pBan; pBan = pBan->m_pNext, --Index)
228 {
229 if(Index == 0)
230 return pBan;
231 }
232
233 return 0;
234}
235
236
237template<class T>

Callers 1

UnbanByIndexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected