From f924ef86416f259e64ac17660c2d2ca4bca5d689 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Sun, 4 Aug 2024 14:07:12 +0200 Subject: [PATCH] Fix newgranularity variable when using debug build --- idlib/containers/List.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idlib/containers/List.h b/idlib/containers/List.h index cc60384..f798a86 100644 --- a/idlib/containers/List.h +++ b/idlib/containers/List.h @@ -152,7 +152,7 @@ idList::idList( int ) template< class type > ID_INLINE idList::idList( int newgranularity ) { #ifdef _DEBUG && 0 - assert( newGranularity > 0 ); + assert( newgranularity > 0 ); #endif list = NULL; granularity = newgranularity; @@ -313,7 +313,7 @@ ID_INLINE void idList::SetGranularity( int newgranularity ) { int newsize; #ifdef _DEBUG && 0 - assert( newGranularity > 0 ); + assert( newgranularity > 0 ); #endif granularity = newgranularity; @@ -423,7 +423,7 @@ ID_INLINE void idList::Resize( int newsize, int newgranularity ) { #ifdef _DEBUG && 0 assert( newsize >= 0 ); - assert( newGranularity > 0 ); + assert( newgranularity > 0 ); #endif granularity = newgranularity;