From: Steinar H. Gunderson Date: Tue, 13 Aug 2019 20:07:45 +0000 (+0200) Subject: Fix a crash on short multi-PVs. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=5e632ba764f5aa8bb109e7c9fa3d504fd274094f;hp=70060c135b7ca0a8fe0838208c048a2b42e52614 Fix a crash on short multi-PVs. --- 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;