avoid error when currentPlayer is not set

This commit is contained in:
Laurent Mazet 2020-10-18 20:49:12 +02:00
parent 1ca1b4ad7c
commit 6c74d77a97
1 changed files with 4 additions and 0 deletions

View File

@ -1879,6 +1879,10 @@
myConfirm(
_("Do you want to add score to active player?") + " " + totalScore,
function () {
if (currentPlayer === "") {
return;
}
const scoreCell = tablePlayers[currentPlayer].childNodes[2].childNodes[0];
sendCmds([{
cmd: "score",