From e285500f27cb39369c372ea08e10174f2a1ffcbf Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 18 Apr 2004 08:32:45 +0000 Subject: [PATCH] don't allow autogen match when reloading in the editor --- stepmania/src/ScreenEdit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index ba2747b42b..4391211a41 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1425,6 +1425,11 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) CString sMessage = "Reloaded from disk."; Steps *pSteps = id.ToSteps( GAMESTATE->m_pCurSong, false ); + // Don't allow an autogen match. This can't be what they chose to + // edit originally because autogen steps are hidden. + if( pSteps->IsAutogen() ) + pSteps = NULL; + /* If we couldn't find the steps we were on before, warn and use the first available. */ if( pSteps == NULL ) {