bounds check
This commit is contained in:
@@ -892,7 +892,7 @@ void Player::HandleStep( int col, const RageTimer &tm )
|
|||||||
|
|
||||||
if( score == TNS_HIT_MINE )
|
if( score == TNS_HIT_MINE )
|
||||||
{
|
{
|
||||||
if( tn.bKeysound )
|
if( tn.bKeysound && tn.iKeysoundIndex < (int) m_vKeysounds.size() )
|
||||||
m_vKeysounds[tn.iKeysoundIndex].Play();
|
m_vKeysounds[tn.iKeysoundIndex].Play();
|
||||||
else
|
else
|
||||||
m_soundMine.Play();
|
m_soundMine.Play();
|
||||||
@@ -974,7 +974,7 @@ void Player::HandleStep( int col, const RageTimer &tm )
|
|||||||
if( iIndexOverlappingNote != -1 )
|
if( iIndexOverlappingNote != -1 )
|
||||||
{
|
{
|
||||||
TapNote tn = m_NoteData.GetTapNote( col, iIndexOverlappingNote );
|
TapNote tn = m_NoteData.GetTapNote( col, iIndexOverlappingNote );
|
||||||
if( tn.bKeysound )
|
if( tn.bKeysound && tn.iKeysoundIndex < (int) m_vKeysounds.size() )
|
||||||
m_vKeysounds[tn.iKeysoundIndex].Play();
|
m_vKeysounds[tn.iKeysoundIndex].Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user