mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Make assert better
Check if not below zero.
This commit is contained in:
parent
abb9f30753
commit
2768b925b0
@ -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; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user