on edit "revert from disk", if the reverted file has no steps of the current

type, exit to menu instead of crashing
This commit is contained in:
Glenn Maynard
2004-04-17 00:07:59 +00:00
parent 7bd4ce0445
commit de3a48cb54
+4 -1
View File
@@ -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 );