From c0bd180d85158a20e5720c11f572e1aac356f618 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 5 Jun 2004 05:39:43 +0000 Subject: [PATCH] set up Steps before passing it off to Song --- stepmania/src/NotesLoaderSM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NotesLoaderSM.cpp b/stepmania/src/NotesLoaderSM.cpp index ebdca95690..e957bd6403 100644 --- a/stepmania/src/NotesLoaderSM.cpp +++ b/stepmania/src/NotesLoaderSM.cpp @@ -336,7 +336,6 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out ) { Steps* pNewNotes = new Steps; ASSERT( pNewNotes ); - out.AddSteps( pNewNotes ); if( iNumParams < 7 ) { @@ -347,6 +346,8 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out ) LoadFromSMTokens( sParams[1], sParams[2], sParams[3], sParams[4], sParams[5], sParams[6], (iNumParams>=8)?sParams[7]:"", *pNewNotes); + + out.AddSteps( pNewNotes ); } else if( 0==stricmp(sValueName,"OFFSET") || 0==stricmp(sValueName,"BPMS") || 0==stricmp(sValueName,"STOPS") || 0==stricmp(sValueName,"FREEZES") )