X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=fff00026c6cdad7380c32d1e4b53471f65efae05;hp=2ab983970dcceb8f8466db7398b875ef9962709c;hb=2170fa18bf59f977138f9de2389cbfdd85d84415;hpb=be540b6dd73eab00444c068fad707e88b223d608 diff --git a/src/search.cpp b/src/search.cpp index 2ab98397..fff00026 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -715,6 +715,7 @@ namespace { alpha = *alphaPtr; beta = *betaPtr; isCheck = pos.is_check(); + depth = (Iteration - 2) * OnePly + InitialDepth; // Step 1. Initialize node (polling is omitted at root) ss->currentMove = ss->bestMove = MOVE_NONE; @@ -764,7 +765,6 @@ namespace { captureOrPromotion = pos.move_is_capture_or_promotion(move); // Step 11. Decide the new search depth - depth = (Iteration - 2) * OnePly + InitialDepth; ext = extension(pos, move, captureOrPromotion, moveIsCheck, false, false, &dangerous); newDepth = depth + ext;