]> git.sesse.net Git - remoteglot/commitdiff
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 e605b8733eb3a551a5f7a0cdda8f9170c8172bfe..9f0ac3f8f9352ffcde08343679bfea6dce27080a 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};
                        }
                }
        }