Chess: Fix "New game" button

This commit is contained in:
Wuzzy 2023-07-12 21:30:08 +02:00
parent 8f339206ca
commit 3e8a155895

View File

@ -1770,7 +1770,7 @@ function realchess.fields(pos, _, fields, sender)
-- Timeout is 5 min. by default for resetting the game (non-players only)
if fields.new then
if (playerWhite == playerName or playerBlack == playerName) then
if (playerWhite == playerName or playerBlack == playerName or playerWhite == "") then
realchess.init(pos)
elseif lastMoveTime > 0 then