Only process this loop if there is a notefield.

This commit is contained in:
Jason Felds
2013-04-28 17:52:06 -04:00
parent b82e7c18a2
commit 35c22dc21f
+2 -3
View File
@@ -3266,14 +3266,13 @@ void Player::HandleHoldCheckpoint(int iRow,
if( iNumHoldsMissedThisRow == 0 )
{
// added for http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=16 -aj
if( CHECKPOINTS_FLASH_ON_HOLD )
if( CHECKPOINTS_FLASH_ON_HOLD && m_pNoteField != nullptr)
{
for (int const &i : viColsWithHold)
{
bool bBright = m_pPlayerStageStats
&& m_pPlayerStageStats->m_iCurCombo>(int)BRIGHT_GHOST_COMBO_THRESHOLD;
if( m_pNoteField )
m_pNoteField->DidHoldNote( i, HNS_Held, bBright );
m_pNoteField->DidHoldNote( i, HNS_Held, bBright );
}
}
}