X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=ba99df0d1262fd7edffe0f03d0f68240d47c03bc;hp=005f85203e6a493f6540d2281b0c78a667bedf4b;hb=70b1b79264b2a160f72dd2aa92c2f80045e4cd83;hpb=e40b06a0503b44bae5508a371d961914828214b6 diff --git a/src/movepick.cpp b/src/movepick.cpp index 005f8520..ba99df0d 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -79,12 +79,12 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, killers[1].move = ss->killers[1]; // Consider sligtly negative captures as good if at low depth and far from beta - if (ss && ss->eval < beta - PawnValueMg && d < 3 * ONE_PLY) + if (ss && ss->staticEval < beta - PawnValueMg && d < 3 * ONE_PLY) captureThreshold = -PawnValueMg; // Consider negative captures as good if still enough to reach beta - else if (ss && ss->eval > beta) - captureThreshold = beta - ss->eval; + else if (ss && ss->staticEval > beta) + captureThreshold = beta - ss->staticEval; } ttMove = (ttm && pos.is_pseudo_legal(ttm) ? ttm : MOVE_NONE);