From 4bdf480a6f28f5fba6b8651a453cce5c4dc56371 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 24 Apr 2004 20:57:30 +0000 Subject: [PATCH] editor: fix crash on reverting from disk and the selected notes weren't found --- stepmania/src/ScreenEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 4391211a41..7aa2986372 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1427,7 +1427,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) // Don't allow an autogen match. This can't be what they chose to // edit originally because autogen steps are hidden. - if( pSteps->IsAutogen() ) + if( pSteps && pSteps->IsAutogen() ) pSteps = NULL; /* If we couldn't find the steps we were on before, warn and use the first available. */