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:
@@ -90,7 +90,7 @@ void LifeMeterTime::OnLoadSong()
|
||||
return;
|
||||
|
||||
Course* pCourse = GAMESTATE->m_pCurCourse;
|
||||
ASSERT( pCourse );
|
||||
ASSERT( pCourse != NULL );
|
||||
|
||||
float fOldLife = m_fLifeTotalLostSeconds;
|
||||
float fGainSeconds = pCourse->m_vEntries[GAMESTATE->GetCourseSongIndex()].fGainSeconds;
|
||||
|
||||
Reference in New Issue
Block a user