Fixed "Create from AutoGen" function in ScreenEditMenu.

This commit is contained in:
Chris Danford
2003-02-10 05:49:22 +00:00
parent 7a810c1378
commit 24d88b979f
2 changed files with 4 additions and 10 deletions
+3 -2
View File
@@ -201,11 +201,12 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
// Yuck. Doing the memory allocation doesn't seem right since
// Song allocates all of the other Notes.
Notes* pNewNotes = new Notes;
pNewNotes->CopyFrom( pSourceNotes, nt );
pNewNotes->AutogenFrom( pSourceNotes, nt );
pNewNotes->BakeAutoGen();
pNewNotes->SetDifficulty( dc );
pSong->AddNotes( pNewNotes );
SCREENMAN->SystemMessage( "AutoGen Notes created." );
SCREENMAN->SystemMessage( "Notes created from AutoGen." );
m_soundCreate.PlayRandom();
m_Selector.Refresh();
pSong->Save();