From: Steinar H. Gunderson Date: Thu, 21 Nov 2013 22:13:45 +0000 (+0100) Subject: Unbreak find_nonstupid_moves. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=7d32d14ab6626993cc72c1d3cebc40f13e95dbed Unbreak find_nonstupid_moves. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 80a5db9..d259e27 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -261,7 +261,7 @@ var find_nonstupid_moves = function(data, margin) { moves.push(move); } } - moves = moves.sort(function(a, b) { return compare_by_score(data.refutation_lines, a, b) }); + moves = moves.sort(function(a, b) { return compare_by_score(data.refutation_lines, data.position.toplay, a, b) }); moves.unshift(data.pv_uci[0]); return moves;