From 28bef70e8dc7f3aee648707dd68ed79f660f1fd0 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 20 Feb 2020 13:28:20 +0100
Subject: [PATCH] Fix corr game loading

---
 client/src/views/Game.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 2108493c..e25fc5ec 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -468,7 +468,7 @@ export default {
             let vr_tmp = new V(game.fen); //start from last position
             let dtLastMove = 0;
             for (let midx = game.moves.length - 1; midx >= 0; midx--) {
-              vr_tmp.undo(game.moves[midx]);
+              vr_tmp.undo(game.moves[midx].squares);
               if (vr_tmp.turn == mycolor) {
                 dtLastMove = game.moves[midx].played;
                 break;
-- 
2.44.0