Reset last move when cancelling half move
[vchess.git] / client / src / components / BaseGame.vue
index 1840882..e99c194 100644 (file)
@@ -592,6 +592,8 @@ export default {
       if (this.inMultimove) {
         this.cancelCurrentMultimove();
         this.incheck = this.vr.getCheckSquares();
+        if (this.cursor >= 0) this.lastMove = this.moves[this.cursor];
+        else this.lastMove = null;
       } else {
         if (!move) {
           const minCursor =