"Fix" Crash on unended hold notes.

This commit is contained in:
Charles Lohr
2005-02-12 05:30:30 +00:00
parent ccc31cad7f
commit 462e471648
+2 -3
View File
@@ -247,9 +247,8 @@ namespace
/* If iDuration is 0, we'd end up overwriting the head with the tail
* (and invalidating our iterator). Empty hold notes aren't valid. */
ASSERT( tn.iDuration != 0 );
inout.SetTapNote( t, iRow + tn.iDuration, tail );
if( tn.iDuration != 0 )
inout.SetTapNote( t, iRow + tn.iDuration, tail );
}
}
}