From 96117b9b657c8d993883cd075f9a342171c0a101 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Thu, 7 Jul 2005 16:24:09 +0000 Subject: [PATCH] Apparently, we can't arbitrarily switch screens at the engine level. Crash instead. --- stepmania/src/ScreenSelectStyle.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/stepmania/src/ScreenSelectStyle.cpp b/stepmania/src/ScreenSelectStyle.cpp index def31971aa..3170bda5c9 100644 --- a/stepmania/src/ScreenSelectStyle.cpp +++ b/stepmania/src/ScreenSelectStyle.cpp @@ -245,14 +245,8 @@ void ScreenSelectStyle::UpdateSelectableChoices() } } - if( iSwitchToStyleIndex == -1 )// no styles are enabled. We're stuck! - { - DEBUG_ASSERT(0); - SCREENMAN->SystemMessage( "No Styles are selectable." ); - SCREENMAN->SetNewScreen( INITIAL_SCREEN ); - return; - } - + // Apparently, we can't arbitrarily switch screens at the engine level. + ASSERT_M( iSwitchToStyleIndex != -1, "No Styles are selectable." ); m_iSelection = iSwitchToStyleIndex; AfterChange();