From 5e632ba764f5aa8bb109e7c9fa3d504fd274094f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 13 Aug 2019 22:07:45 +0200 Subject: [PATCH] Fix a crash on short multi-PVs. --- www/js/remoteglot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 1e89929..01faf1a 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1260,7 +1260,7 @@ var update_board = function() { if (!data['refutation_lines'] || !data['refutation_lines'][nonstupid_moves[i]] || !data['refutation_lines'][nonstupid_moves[i]]['pv'] || - data['refutation_lines'][nonstupid_moves[i]]['pv'].length < 1) { + data['refutation_lines'][nonstupid_moves[i]]['pv'].length < 2) { // Incomplete PV, abort. response = undefined; break; -- 2.39.2