look, a bug!

This commit is contained in:
Astro 2010-09-21 02:15:20 +02:00
parent 597a7030c5
commit 3eb90e938f
1 changed files with 5 additions and 5 deletions

10
quiz.js
View File

@ -85,11 +85,11 @@ function switchToScoreboard() {
function updateScores() {
for(var i = 0; i < playerNames.length; i++) {
if (!playerNames[i])
continue;
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
$('#players .player'+i+' .score').text(playerScores[i]);
if (playerNames[i]) {
// FIXME: eq(i) is bad when first player is empty
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
$('#players .player'+i+' .score').text(playerScores[i]);
}
}
}