Skip to content

Commit

Permalink
Fix CUtlMap purge one
Browse files Browse the repository at this point in the history
  • Loading branch information
Wend4r committed Dec 27, 2024
1 parent 6baedbd commit e91e10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/tier1/utlmemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,9 @@ inline void CUtlMemory<T,I>::EnsureCapacity( I num )
template< class T, class I >
void CUtlMemory<T,I>::Purge()
{
if ( !IsExternallyAllocated() )
if ( m_nGrowSize && !IsExternallyAllocated() )
{
if (m_pMemory)
if ( m_pMemory )
{
UTLMEMORY_TRACK_FREE();
Assert( m_pMemory != (T *)(size_t)UTLMEMORY_BAD_ADDRESS );
Expand Down

0 comments on commit e91e10f

Please sign in to comment.