Changed NoteSkinManager to use new error reporting and avoid crashing. Fixed DoChangeTheme to switch to the InitialScreen if the screen doesn't exist in the theme being changed to. Fixed error reporting in MeterDisplay.
This commit is contained in:
@@ -37,7 +37,11 @@ void StepsDisplayList::LoadFromNode( const XNode* pNode )
|
||||
{
|
||||
ActorFrame::LoadFromNode( pNode );
|
||||
|
||||
ASSERT_M( !m_sName.empty(), "StepsDisplayList must have a Name" );
|
||||
if(m_sName.empty())
|
||||
{
|
||||
LuaHelpers::ReportScriptError("StepsDisplayList must have a Name");
|
||||
return;
|
||||
}
|
||||
|
||||
ITEMS_SPACING_Y.Load( m_sName, "ItemsSpacingY" );
|
||||
NUM_SHOWN_ITEMS.Load( m_sName, "NumShownItems" );
|
||||
|
||||
Reference in New Issue
Block a user