mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
Correct CUtlLeanVector::IsIdxValid method
This commit is contained in:
@ -64,7 +64,7 @@ public:
|
||||
// Element removal
|
||||
void RemoveAll(); // doesn't deallocate memory
|
||||
|
||||
bool IsIdxValid( I i ) const { return (i >= 0) && (i < NumAllocated()); }
|
||||
bool IsIdxValid( I i ) const { return (i >= 0) && (i < m_nCount); }
|
||||
|
||||
// Memory deallocation
|
||||
void Purge();
|
||||
@ -286,7 +286,7 @@ public:
|
||||
// Element removal
|
||||
void RemoveAll(); // doesn't deallocate memory
|
||||
|
||||
bool IsIdxValid( I i ) const { return (i >= 0) && (i < NumAllocated()); }
|
||||
bool IsIdxValid( I i ) const { return (i >= 0) && (i < m_nCount); }
|
||||
|
||||
// Memory deallocation
|
||||
void Purge();
|
||||
|
Reference in New Issue
Block a user