Skip to content

Commit

Permalink
force rate sort on highscores rather than assuming they are sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 17, 2016
1 parent 9f86da0 commit 568ba80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ local function GetBestScoreByFilter(perc,CurRate)
if not rtTable[rates[1]] then return nil end
end

for i=1,#rates do
table.sort(rates)

for i=#rates,1,-1 do
scores = rtTable[rates[i]]
for ii=1,#scores do
score = scores[ii]
Expand Down

0 comments on commit 568ba80

Please sign in to comment.