Fix an issue (not yet visible, really) where conversion from single multi-PV would...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 24 Jan 2016 21:21:24 +0000 (22:21 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 24 Jan 2016 21:21:24 +0000 (22:21 +0100)
remoteglot.pl

index e605b87..9f0ac3f 100755 (executable)
@@ -594,6 +594,8 @@ sub output {
                for my $key (qw(pv score_cp score_mate nodes nps depth seldepth tbhits)) {
                        if (exists($info->{$key . '1'})) {
                                $info->{$key} = $info->{$key . '1'};
+                       } else {
+                               delete $info->{$key};
                        }
                }
        }