From af810b27bbc126ec160cede505313a3a530cdcb4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 10 Feb 2018 18:08:09 +0100 Subject: [PATCH 1/1] Yet more Chess960 castling fixes. --- www/js/chess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/chess.js b/www/js/chess.js index 9da372c..a0e3813 100644 --- a/www/js/chess.js +++ b/www/js/chess.js @@ -1104,7 +1104,7 @@ var Chess = function(fen) { castling_from = move.to + 1; } - board[castling_to] = board[castling_from]; + board[castling_to] = {type: ROOK, color: us}; if(castling_from !== move.from && castling_from !== castling_to) board[castling_from] = null; } -- 2.39.2