Make this loop slightly more efficient.
This commit is contained in:
+1
-1
@@ -384,7 +384,7 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList )
|
|||||||
|
|
||||||
void HighScoreList::RemoveAllButOneOfEachName()
|
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++ )
|
for( vector<HighScore>::iterator j = i+1; j != vHighScores.end(); j++ )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user