Skip to content

Commit

Permalink
hopefully fix profile viewing crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 15, 2017
1 parent 49aa617 commit 28a4129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,7 @@ RString Profile::GetTopSSRSongName(unsigned int rank, int skillset) {
return ( songid.ToSong() )->GetMainTitle();
}
float Profile::GetTopSSRValue(unsigned int rank, int skillset) {
if (rank == 0)
if (rank <= 0)
rank = 1;
HighScore *highScorePtr = GetTopSSRHighScore(rank, skillset);
//Empty HighScore Pointer = NULL then return 0
Expand All @@ -2214,7 +2214,7 @@ float Profile::GetTopSSRValue(unsigned int rank, int skillset) {
return 0.f;
}
SongID Profile::GetTopSSRSongID(unsigned int rank, int skillset) {
if (rank == 0)
if (rank <= 0)
rank = 1;
if (rank > static_cast<unsigned int>(topSSRSongIds[skillset].size()))
if (CalcAllTopSSRs(rank) == false) {
Expand Down

0 comments on commit 28a4129

Please sign in to comment.