diff --git a/stepmania/src/ScreenEditMenu.cpp b/stepmania/src/ScreenEditMenu.cpp index 628c965ceb..e810bf29e8 100644 --- a/stepmania/src/ScreenEditMenu.cpp +++ b/stepmania/src/ScreenEditMenu.cpp @@ -114,6 +114,16 @@ void ScreenEditMenu::MenuRight( PlayerNumber pn, const InputEventType type ) } +// helpers for MenuStart() below +void DeleteCurNotes() +{ + Song* pSong = GAMESTATE->m_pCurSong; + Steps* pNotesToDelete = GAMESTATE->m_pCurNotes[PLAYER_1]; + pSong->RemoveNotes( pNotesToDelete ); + pSong->Save(); +} + + void ScreenEditMenu::MenuStart( PlayerNumber pn ) { if( m_Menu.IsTransitioning() ) @@ -153,7 +163,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn ) break; case EditMenu::ACTION_DELETE: ASSERT( pNotes ); - SCREENMAN->Prompt( SM_RefreshSelector, "These notes will be lost permanently.\n\nContinue with delete?", true, false, NULL ); + SCREENMAN->Prompt( SM_RefreshSelector, "These notes will be lost permanently.\n\nContinue with delete?", true, false, DeleteCurNotes ); m_Selector.RefreshNotes(); return; case EditMenu::ACTION_COPY: