X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=fb4564f7f2c3a0de46a52d3ffaa0bbcb2bcbf503;hb=b955c65b942d09d24b5c3bed0d755d4f2f8f71f1;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);