From be2bec1401ffb6e97fff82d25e2800a42c04f1cb Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 2 Feb 2003 21:49:47 +0000 Subject: [PATCH] fix crash when backing out while roulette is spinning --- stepmania/src/ScreenSelectMusic.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index 4876584aff..dfeff4ce3f 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -557,6 +557,10 @@ void ScreenSelectMusic::HandleScreenMessage( const ScreenMessage SM ) break; case SM_GoToPrevScreen: SCREENMAN->SetNewScreen( "ScreenTitleMenu" ); + /* We may have stray SM_SongChanged messages from the music wheel. We can't + * handle them anymore, since the title menu (and attract screens) reset + * the game state, so just discard them. */ + ClearMessageQueue(); break; case SM_GoToNextScreen: if( m_bGoToOptions )