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:
+1
-1
@@ -151,7 +151,7 @@ void MusicWheel::BeginScreen()
|
||||
const vector<MusicWheelItemData *> &from = getWheelItemsData(SORT_MODE_MENU);
|
||||
for( unsigned i=0; i<from.size(); i++ )
|
||||
{
|
||||
ASSERT( &*from[i]->m_pAction );
|
||||
ASSERT( &*from[i]->m_pAction != NULL );
|
||||
if( from[i]->m_pAction->DescribesCurrentModeForAllPlayers() )
|
||||
{
|
||||
m_sLastModeMenuItem = from[i]->m_pAction->m_sName;
|
||||
|
||||
Reference in New Issue
Block a user