Commit 7541acca authored by Eben Blaisdell's avatar Eben Blaisdell

addToRankings fix

parent 53e52b25
......@@ -259,7 +259,7 @@ function setUserInfo(username,userInfo){
function addToRankings(playerScore){
var index = 0;
while(rankings[index] && rankings[index][1]>=playerScore[1]){index++;}
while(rankings[index] && rankings[index][1]>playerScore[1]){index++;}
rankings.splice(index,0,playerScore);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment