X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=61e5527f42c61d638132201f0b2f2efd18bc999a;hp=7d759f12691058f255f84784e388a09b4fad6c09;hb=a21a110188eed1ff41f2a1535a93b48c654663de;hpb=b414fc0dfdced41aa14d4d86dd6a94ce3e2094f3 diff --git a/src/movepick.cpp b/src/movepick.cpp index 7d759f12..61e5527f 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -110,13 +110,13 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h) go_next_phase(); } -MovePicker::MovePicker(const Position& p, Move ttm, const History& h, int threshold) +MovePicker::MovePicker(const Position& p, Move ttm, const History& h, int parentCapture) : pos(p), H(h) { assert (!pos.in_check()); // In ProbCut we consider only captures better than parent's move - captureThreshold = threshold; + captureThreshold = parentCapture; phasePtr = ProbCutTable; if ( ttm != MOVE_NONE