War on -Werror, part 12: explicit bool usage.
It may save a few cycles, but it's best to be explicit on boolean operations, especially with ASSERT.
This commit is contained in:
@@ -1135,7 +1135,7 @@ bool ScreenOptions::MoveRowRelative( PlayerNumber pn, int iDir, bool bRepeat )
|
||||
//LOG->Trace( "MoveRowRelative(pn %i, dir %i, rep %i)", pn, iDir, bRepeat );
|
||||
|
||||
int iDest = -1;
|
||||
ASSERT( m_pRows.size() );
|
||||
ASSERT( m_pRows.size() != 0 );
|
||||
for( int r=1; r<(int)m_pRows.size(); r++ )
|
||||
{
|
||||
int iDelta = r*iDir;
|
||||
|
||||
Reference in New Issue
Block a user