X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRecycle.js;h=82895f351d345410c70988f49291da6b5a1f86f4;hb=bbf668379ae5980d5068dd76cf907c87ce7ed648;hp=73d9166989a394f00746298d766d66e0ba139c98;hpb=e727fe31742dfb3e40eb222c94f4199e2be98453;p=vchess.git diff --git a/client/src/variants/Recycle.js b/client/src/variants/Recycle.js index 73d91669..82895f35 100644 --- a/client/src/variants/Recycle.js +++ b/client/src/variants/Recycle.js @@ -19,7 +19,7 @@ export const VariantRules = class RecycleRules extends ChessRules { } getEpSquare(moveOrSquare) { - if (typeof moveOrSquare !== "object" || move.vanish.length > 0) + if (typeof moveOrSquare !== "object" || moveOrSquare.vanish.length > 0) return super.getEpSquare(moveOrSquare); // Landing move: no en-passant return undefined;