Only process this loop if there is a notefield.
This commit is contained in:
+1
-2
@@ -3266,13 +3266,12 @@ void Player::HandleHoldCheckpoint(int iRow,
|
|||||||
if( iNumHoldsMissedThisRow == 0 )
|
if( iNumHoldsMissedThisRow == 0 )
|
||||||
{
|
{
|
||||||
// added for http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=16 -aj
|
// 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)
|
for (int const &i : viColsWithHold)
|
||||||
{
|
{
|
||||||
bool bBright = m_pPlayerStageStats
|
bool bBright = m_pPlayerStageStats
|
||||||
&& m_pPlayerStageStats->m_iCurCombo>(int)BRIGHT_GHOST_COMBO_THRESHOLD;
|
&& 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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user