tier1: fix commandbuffer unitialized boolean

This commit is contained in:
nillerusr
2022-08-17 13:35:55 +03:00
parent 8b6ad0d342
commit 45d33c6b97
3 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -426,7 +426,7 @@ void CUtlString::TrimLeft( char cTarget )
// We have some whitespace to remove
if ( nIndex > 0 )
{
memcpy( m_pString, &m_pString[nIndex], Length() - nIndex );
memmove( m_pString, &m_pString[nIndex], Length() - nIndex );
SetLength( Length() - nIndex );
}
}
@@ -463,7 +463,7 @@ void CUtlString::TrimLeft( const char *szTargets )
// We have some whitespace to remove
if ( i > 0 )
{
memcpy( m_pString, &m_pString[i], Length() - i );
memmove( m_pString, &m_pString[i], Length() - i );
SetLength( Length() - i );
}
}