Simple loop here.

This commit is contained in:
Jason Felds
2013-04-30 22:51:19 -04:00
parent be91b56a63
commit efb0a386f4
+2 -2
View File
@@ -120,9 +120,9 @@ void ScreenJukebox::SetSong()
AttackArray aAttacks = pEntry->attacks; AttackArray aAttacks = pEntry->attacks;
if( !pEntry->sModifiers.empty() ) if( !pEntry->sModifiers.empty() )
aAttacks.push_back( Attack::FromGlobalCourseModifier( pEntry->sModifiers ) ); aAttacks.push_back( Attack::FromGlobalCourseModifier( pEntry->sModifiers ) );
FOREACH_CONST( Attack, aAttacks, a ) for (Attack const &a: aAttacks)
{ {
RString s = a->sModifiers; RString s = a.sModifiers;
s.MakeLower(); s.MakeLower();
// todo: allow themers to modify this list? -aj // todo: allow themers to modify this list? -aj
if( s.find("dark") != string::npos || if( s.find("dark") != string::npos ||