From 05bfda3f4b523308f8bd96e70ec76ba5858ac8a7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 12 Nov 2006 04:19:51 +0000 Subject: [PATCH] don't delete autogen steps; they're created and deleted by Song --- stepmania/src/Song.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 74b3512dbf..886e8eb6b5 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1077,6 +1077,8 @@ void Song::AddSteps( Steps* pSteps ) void Song::DeleteSteps( const Steps* pSteps, bool bReAutoGen ) { + ASSERT( !pSteps->IsAutogen() ); + // Avoid any stale Note::parent pointers by removing all AutoGen'd Steps, // then adding them again.