From 1f30570af3876e62f1b19f9943fe0adcabf7e58c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 13 Nov 2016 18:59:42 +0100 Subject: [PATCH 1/1] Fix a problem where invalid PVs would not be detected, leading to client crashes. --- remoteglot.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remoteglot.pl b/remoteglot.pl index 52eae90..6443c31 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -526,7 +526,7 @@ sub prettyprint_pv_no_cache { sub prettyprint_pv { my ($pos, @pvs) = @_; - my $cachekey = join('', @pvs); + my $cachekey = $pos->{'fen'} . join('', @pvs); if (exists($pos->{'prettyprint_cache'}{$cachekey})) { return @{$pos->{'prettyprint_cache'}{$cachekey}}; } else { -- 2.39.2