mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-06 18:18:23 +00:00
Correct CUtlLeanVector::IsIdxValid method
This commit is contained in:
parent
b6c821fc47
commit
eb04e08b0a
@ -64,7 +64,7 @@ public:
|
|||||||
// Element removal
|
// Element removal
|
||||||
void RemoveAll(); // doesn't deallocate memory
|
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
|
// Memory deallocation
|
||||||
void Purge();
|
void Purge();
|
||||||
@ -286,7 +286,7 @@ public:
|
|||||||
// Element removal
|
// Element removal
|
||||||
void RemoveAll(); // doesn't deallocate memory
|
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
|
// Memory deallocation
|
||||||
void Purge();
|
void Purge();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user