]> git.sesse.net Git - remoteglot/blobdiff - remoteglot.pl
Fix the PV check.
[remoteglot] / remoteglot.pl
index 7097306fecfd3795c407392164fcda012c5de1ed..163e16666cf108d41cbfbb271a2c0d3e6e1c035c 100755 (executable)
@@ -533,7 +533,7 @@ sub prettyprint_pv_no_cache {
 sub prettyprint_pv {
        my ($pos, @pvs) = @_;
 
-       my $cachekey = $pos->{'fen'} . join('', @pvs);
+       my $cachekey = $pos->fen() . join('', @pvs);
        if (exists($pos->{'prettyprint_cache'}{$cachekey})) {
                return @{$pos->{'prettyprint_cache'}{$cachekey}};
        } else {