ASSERT_M to catch invalid value

This commit is contained in:
Chris Danford
2006-06-14 10:07:04 +00:00
parent ffd790a834
commit ddaa912878
+1 -1
View File
@@ -297,7 +297,7 @@ int NoteData::GetFirstTrackWithTapOrHoldHead( int row ) const
void NoteData::AddHoldNote( int iTrack, int iStartRow, int iEndRow, TapNote tn )
{
ASSERT( iStartRow>=0 && iEndRow>=0 );
ASSERT( iEndRow >= iStartRow );
ASSERT_M( iEndRow >= iStartRow, ssprinf("%d %d",iEndRow,iStartRow) );
/* Include adjacent (non-overlapping) hold notes, since we need to merge with them. */
iterator begin, end;