X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=519782f8471349ec765a3f6682db054482525601;hp=b7e04fad2b22484ec2237e9d1f3ecdd81aece60a;hb=d07e782e22ca2ed0ec748ac38c33673baec28cc5;hpb=d2acdac1012cfbd8563fbe70157b2adbb05b2002 diff --git a/src/search.cpp b/src/search.cpp index b7e04fad..519782f8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -643,7 +643,7 @@ namespace { ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE; ttMove = rootNode ? thisThread->rootMoves[thisThread->pvIdx].pv[0] : ttHit ? tte->move() : MOVE_NONE; - pvHit = ttHit ? tte->pv_hit() : false; + pvHit = ttHit && tte->pv_hit(); // At non-PV nodes we check for an early TT cutoff if ( !PvNode @@ -881,7 +881,7 @@ namespace { tte = TT.probe(posKey, ttHit); ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE; ttMove = ttHit ? tte->move() : MOVE_NONE; - pvHit = ttHit ? tte->pv_hit() : false; + pvHit = ttHit && tte->pv_hit(); } moves_loop: // When in check, search starts from here @@ -1292,7 +1292,7 @@ moves_loop: // When in check, search starts from here tte = TT.probe(posKey, ttHit); ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE; ttMove = ttHit ? tte->move() : MOVE_NONE; - pvHit = ttHit ? tte->pv_hit() : false; + pvHit = ttHit && tte->pv_hit(); if ( !PvNode && ttHit