Make this loop slightly more efficient.

This commit is contained in:
Jason Felds
2013-05-01 22:14:35 -04:00
parent ede7d80dbd
commit b4de5421b7
+1 -1
View File
@@ -384,7 +384,7 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList )
void HighScoreList::RemoveAllButOneOfEachName()
{
FOREACH( HighScore, vHighScores, i )
for (vector<HighScore>::iterator i = vHighScores.begin(); i != vHighScores.end() - 1; ++i)
{
for( vector<HighScore>::iterator j = i+1; j != vHighScores.end(); j++ )
{