]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Fix a crash on short multi-PVs.
[remoteglot] / www / js / remoteglot.js
index 1e899298cef2997c7392376d1fc8126c78ed1cd0..01faf1aec858f3b603f14ee3ad04828e40f53a6f 100644 (file)
@@ -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;