From: Steinar H. Gunderson Date: Sun, 24 Jan 2016 21:21:24 +0000 (+0100) Subject: Fix an issue (not yet visible, really) where conversion from single multi-PV would... X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=233222cc738d382d962f69bdcfe9eedd01ad7e43 Fix an issue (not yet visible, really) where conversion from single multi-PV would leave junk from older mates. --- diff --git a/remoteglot.pl b/remoteglot.pl index e605b87..9f0ac3f 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -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}; } } }