Fix moves update
[vchess.git] / client / src / views / Game.vue
index b66c6ef..114b86b 100644 (file)
@@ -452,7 +452,7 @@ export default {
           squares: filtered_move,
           message: this.corrMsg, //TODO
           played: Date.now(), //TODO: on server?
-          idx: this.game.moves.length - 1,
+          idx: this.game.moves.length,
           color: move.color,
         },
         clocks: this.game.clocks.map((t,i) => i==colorIdx