diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index dc6700fe17..638e0e864d 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -246,9 +246,10 @@ namespace tail.type = TapNote::hold_tail; /* If iDuration is 0, we'd end up overwriting the head with the tail - * (and invalidating our iterator). Empty hold notes aren't valid. */ - if( tn.iDuration != 0 ) - inout.SetTapNote( t, iRow + tn.iDuration, tail ); + * (and invalidating our iterator). Empty hold notes aren't valid. */ + ASSERT( tn.iDuration != 0 ); + + inout.SetTapNote( t, iRow + tn.iDuration, tail ); } } }