X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=ab8605727efef0b288095b2b55d4f210d12ee584;hp=bd3a187853b59540d860e945425cfa3cb67b7abe;hb=cd4cad0468612cf00c6e6879554e3cee58d4b1f9;hpb=ea8417ff95096f626fae0286135d875a9c043e11 diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index bd3a1878..ab860572 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -549,7 +549,7 @@ Vue.component('my-game', { { const oppCol = this.vr.turn; const lastMove = moves[moves.length-1]; - this.vr.undo(lastMove, "ingame"); + this.vr.undo(lastMove); this.incheck = this.vr.getCheckSquares(lastMove, oppCol); this.vr.play(lastMove, "ingame"); }