From d1ed849cb563d1d4617c7ee994ab616112d09ff3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 12 Feb 2005 06:57:52 +0000 Subject: [PATCH] Revert. Removing assertions that you don't understand is not an acceptable fix. Fix bugs, don't ignore them. --- stepmania/src/NoteDataUtil.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ); } } }