X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;fp=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=fb4564f7f2c3a0de46a52d3ffaa0bbcb2bcbf503;hb=74ea2e8d9ec6980e2fb5a4f86afe33b4850e3d53;hp=534d9af41c07ce5131dc460dcebcb6c2abb27780;hpb=ab4f4bf258ed68d8292b64d81babde03cddbae3c;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 534d9af4..fb4564f7 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -490,7 +490,7 @@ Vue.component('my-game', { if (this.cursor == this.moves.length) this.moves.push(move); else - this.moves = this.moves.slice(0,this.cursor-1).concat([move]); + this.moves = this.moves.slice(0,this.cursor).concat([move]); } // Is opponent in check? this.incheck = this.vr.getCheckSquares(this.vr.turn);