From de3a48cb549555bf8f087ed786ebe23af592aeda Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 17 Apr 2004 00:07:59 +0000 Subject: [PATCH] on edit "revert from disk", if the reverted file has no steps of the current type, exit to menu instead of crashing --- stepmania/src/ScreenEdit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index d832cc9641..be0537c854 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1436,7 +1436,10 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) /* If we still couldn't find any steps, then all steps of the current StepsType * were removed. Don't create them; only do that in EditMenu. */ if( pSteps == NULL ) - FAIL_M("!!!"); // XXX + { + SCREENMAN->SetNewScreen( "ScreenEditMenu" ); + return; + } SCREENMAN->SystemMessage( sMessage );