projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes
[vchess.git]
/
client
/
src
/
variants
/
Shogi.js
diff --git
a/client/src/variants/Shogi.js
b/client/src/variants/Shogi.js
index
52cfb54
..
da9a7c4
100644
(file)
--- 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) {
+ options = options || {};
const color = this.turn;
const oneStep = options.oneStep;
const forcePromoteOnLastRank = options.force;