projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0da7d5b
)
Fix corr game loading
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 20 Feb 2020 12:28:20 +0000
(13:28 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 20 Feb 2020 12:28:20 +0000
(13:28 +0100)
client/src/views/Game.vue
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
2108493
..
e25fc5e
100644
(file)
--- 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;