Apparently, we can't arbitrarily switch screens at the engine level. Crash instead.
This commit is contained in:
@@ -245,14 +245,8 @@ void ScreenSelectStyle::UpdateSelectableChoices()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( iSwitchToStyleIndex == -1 )// no styles are enabled. We're stuck!
|
// Apparently, we can't arbitrarily switch screens at the engine level.
|
||||||
{
|
ASSERT_M( iSwitchToStyleIndex != -1, "No Styles are selectable." );
|
||||||
DEBUG_ASSERT(0);
|
|
||||||
SCREENMAN->SystemMessage( "No Styles are selectable." );
|
|
||||||
SCREENMAN->SetNewScreen( INITIAL_SCREEN );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
m_iSelection = iSwitchToStyleIndex;
|
m_iSelection = iSwitchToStyleIndex;
|
||||||
AfterChange();
|
AfterChange();
|
||||||
|
|||||||
Reference in New Issue
Block a user