From 9ffa8b5c41d18ef34ccf36cabe7c1cccbc8fae65 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Sep 2003 05:41:11 +0000 Subject: [PATCH] Fix stray TAP_HOLD_HEADs when merging hold notes in the editor, and possibly other problems. --- stepmania/src/NoteData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NoteData.cpp b/stepmania/src/NoteData.cpp index 3ac5280684..cb6ec03b66 100644 --- a/stepmania/src/NoteData.cpp +++ b/stepmania/src/NoteData.cpp @@ -136,7 +136,8 @@ void NoteData::AddHoldNote( HoldNote add ) add.fEndBeat = max(add.fEndBeat, other.fEndBeat); // delete this HoldNote - m_HoldNotes.erase(m_HoldNotes.begin()+i, m_HoldNotes.begin()+i+1); + RemoveHoldNote( i ); + --i; } }