debugging

This commit is contained in:
Glenn Maynard
2004-04-25 23:22:46 +00:00
parent 08c00bd689
commit b0ca9ef1ea
3 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -115,17 +115,19 @@ void HighScoreList::AddHighScore( HighScore hs, int &iIndexOut )
vHighScores.erase( vHighScores.begin()+iMaxScores, vHighScores.end() );
}
}
#include "RageLog.h"
const HighScore& HighScoreList::GetTopScore() const
{
if( vHighScores.empty() )
{
LOG->Trace("empty");
static HighScore hs;
hs = HighScore();
return hs;
}
else
{
LOG->Trace("not empty");
return vHighScores[0];
}
}