Apparently, we can't arbitrarily switch screens at the engine level. Crash instead.

This commit is contained in:
Ben Anderson
2005-07-07 16:24:09 +00:00
parent 0ce3ef6fc6
commit 96117b9b65
+2 -8
View File
@@ -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();