fix superfluous loading of default noteskin
This commit is contained in:
@@ -1119,7 +1119,9 @@ void GameState::GetAllUsedNoteSkins( vector<CString> &out ) const
|
|||||||
{
|
{
|
||||||
PlayerOptions po;
|
PlayerOptions po;
|
||||||
po.FromString( asAttacks[att] );
|
po.FromString( asAttacks[att] );
|
||||||
if( po.m_sNoteSkin != "" )
|
/* Hack: NoteSkin "default" is never applied as an attack,
|
||||||
|
* so don't waste memory preloading it. */
|
||||||
|
if( po.m_sNoteSkin != "" && po.m_sNoteSkin.CompareNoCase("default") )
|
||||||
out.push_back( po.m_sNoteSkin );
|
out.push_back( po.m_sNoteSkin );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user