]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Fix: In qsearch do not use TT value when in a PV node
[stockfish] / src / movepick.cpp
index 671430708575ab1c6e2834ba9ce2e7c0594b0aa2..d9fe8d2cf329c2cf4fe109efec6f0225f329611d 100644 (file)
@@ -97,7 +97,7 @@ MovePicker::MovePicker(const Position& p, bool pv, Move ttm,
       phaseIndex = (noCaptures ? NoMovesPhaseIndex : QsearchWithoutChecksPhaseIndex);
 
   dc = p.discovered_check_candidates(us);
-  pinned = p.pinned_pieces(p.side_to_move());
+  pinned = p.pinned_pieces(us);
 
   finished = false;
 }