Clear the steps from Player 1 when deleting them in ScreenEditMenu.

This commit is contained in:
Kyzentun
2015-02-16 18:54:09 -07:00
parent f1229d29cb
commit 955c807dd5
+1
View File
@@ -81,6 +81,7 @@ void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
Song* pSong = GAMESTATE->m_pCurSong;
Steps* pStepsToDelete = GAMESTATE->m_pCurSteps[PLAYER_1];
GAMESTATE->m_pCurSteps[PLAYER_1].Set(NULL);
bool bSaveSong = !pStepsToDelete->WasLoadedFromProfile();
pSong->DeleteSteps( pStepsToDelete );
SONGMAN->Invalidate( pSong );