From 233222cc738d382d962f69bdcfe9eedd01ad7e43 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 24 Jan 2016 22:21:24 +0100 Subject: [PATCH] Fix an issue (not yet visible, really) where conversion from single multi-PV would leave junk from older mates. --- remoteglot.pl | 2 ++ 1 file changed, 2 insertions(+) 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}; } } } -- 2.39.2