Make assert better

Check if not below zero.
This commit is contained in:
Amos 2023-08-13 20:26:52 +02:00
parent abb9f30753
commit 2768b925b0

View File

@ -46,7 +46,7 @@ public:
inline int64_t GetMaxTeams(void) const { return m_iMaxTeams; }
inline CClient* GetClient(int nIndex) { Assert(nIndex < MAX_PLAYERS); return &m_Clients[nIndex]; }
inline CClient* GetClient(int nIndex) { Assert(nIndex >= NULL && nIndex < MAX_PLAYERS); return &m_Clients[nIndex]; }
inline float GetCPUUsage(void) const { return m_fCPUPercent; }