X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=163e16666cf108d41cbfbb271a2c0d3e6e1c035c;hp=7097306fecfd3795c407392164fcda012c5de1ed;hb=703728497c14b57cb2e7db9e90376ba82468ecf3;hpb=661cf41244a9be2e618b2a5fe2cf3c03a7e79009 diff --git a/remoteglot.pl b/remoteglot.pl index 7097306..163e166 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -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 {