From 462e471648c6c461a69732725973230dd936c51b Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Sat, 12 Feb 2005 05:30:30 +0000 Subject: [PATCH] "Fix" Crash on unended hold notes. --- stepmania/src/NoteDataUtil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index d384e822e6..dc6700fe17 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -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 ); } } }