mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Fixed compilation of tier1 caused by min/max.
This commit is contained in:
@ -640,7 +640,7 @@ void CUtlBuffer::GetStringInternal( char *pString, size_t maxLenInChars )
|
||||
return;
|
||||
}
|
||||
|
||||
const size_t nCharsToRead = min( (size_t)nLen, maxLenInChars ) - 1;
|
||||
const size_t nCharsToRead = V_min( (size_t)nLen, maxLenInChars ) - 1;
|
||||
|
||||
Get( pString, nCharsToRead );
|
||||
pString[nCharsToRead] = 0;
|
||||
|
Reference in New Issue
Block a user