mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
tier1: fix commandbuffer unitialized boolean
This commit is contained in:
@@ -37,6 +37,7 @@ CCommandBuffer::CCommandBuffer( ) : m_Commands( 32, 32 )
|
||||
m_nArgSBufferSize = 0;
|
||||
m_bIsProcessingCommands = false;
|
||||
m_nMaxArgSBufferLength = ARGS_BUFFER_LENGTH;
|
||||
m_bWaitEnabled = true;
|
||||
}
|
||||
|
||||
CCommandBuffer::~CCommandBuffer()
|
||||
@@ -395,10 +396,8 @@ void CCommandBuffer::EndProcessingCommands()
|
||||
break;
|
||||
|
||||
AssertMsgOnce( false, "CCommandBuffer::EndProcessingCommands() called before all appropriate commands were dequeued.\n" );
|
||||
int nNext = i;
|
||||
Msg( "Warning: Skipping command %s\n", &m_pArgSBuffer[ m_Commands[i].m_nFirstArgS ] );
|
||||
m_Commands.Remove( i );
|
||||
i = nNext;
|
||||
}
|
||||
|
||||
Compact();
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user