]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Unbreak move chaining.
[remoteglot] / www / js / remoteglot.js
index f6c06bb56aa8acb9de5178458787d6b33a57f10d..20cc1fc6ca661ef9f88f65f2497a8d5e81c6eb2e 100644 (file)
@@ -7,7 +7,7 @@
  * @type {Number}
  * @const
  * @private */
-var SCRIPT_VERSION = 2016113002;
+var SCRIPT_VERSION = 2016113007;
 
 /**
  * The current backend URL.
@@ -1207,7 +1207,7 @@ var update_board = function() {
                                break;
                        }
                        create_arrow(move.from, move.to, '#f66', 6, 20);
-                       last_to = move.from;
+                       last_to = move.to;
                        hiddenboard.move(data['pv'][i + 1]);  // To keep continuity.
                }