From 0b9a6ff95fb80a9f40077e6554c420626a1e0454 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Wed, 15 Apr 2020 04:28:42 +0200 Subject: [PATCH] Fix Shogi --- client/src/variants/Shogi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/variants/Shogi.js b/client/src/variants/Shogi.js index 52cfb544..7e827bc2 100644 --- a/client/src/variants/Shogi.js +++ b/client/src/variants/Shogi.js @@ -268,6 +268,7 @@ export class ShogiRules extends ChessRules { // Modified to take promotions into account getSlideNJumpMoves([x, y], steps, options) { + const options = options || {}; const color = this.turn; const oneStep = options.oneStep; const forcePromoteOnLastRank = options.force; -- 2.44.0