test: try to fix "phantom holds" when JudgeHoldNotesOnSameTogether is enabled

This commit is contained in:
Flameshadowxeroshin
2013-05-14 22:54:20 -05:00
parent 8eb76829fb
commit 6999f94d38
+7
View File
@@ -1104,6 +1104,13 @@ void Player::UpdateHoldNotes( int iSongRow, float fDeltaTime, vector<TrackRowTap
ASSERT( iStartRow == trtn->iRow );
TapNote &tn = *trtn->pTN;
int iEndRow = iStartRow + tn.iDuration;
if( iEndRow < iSongRow )
{
trtn = --vTN.erase(trtn);
continue;
}
if( subType == TapNote::SubType_Invalid )
subType = tn.subType;