fix superfluous loading of default noteskin

This commit is contained in:
Glenn Maynard
2004-08-18 07:38:41 +00:00
parent 51feb824a6
commit 0411171c9d
+3 -1
View File
@@ -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 );
} }
} }