X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=55a689567b4029cdb6c5f13c6f0b27c2103989b3;hp=9a2bd41565911c1bd1179df7d074a20b72ed0846;hb=67d06164833857d3497010e952fd0d2c5f00c095;hpb=f7494961de13c3341a1ca2d05ea5f3d28fa35d31 diff --git a/src/search.cpp b/src/search.cpp index 9a2bd415..55a68956 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -893,19 +893,16 @@ namespace { assert(probCutBeta < VALUE_INFINITE); MovePicker mp(pos, ttMove, probCutBeta - ss->staticEval, &captureHistory); - int probCutCount = 0; bool ttPv = ss->ttPv; ss->ttPv = false; - while ( (move = mp.next_move()) != MOVE_NONE - && probCutCount < 2 + 2 * cutNode) + while ((move = mp.next_move()) != MOVE_NONE) if (move != excludedMove && pos.legal(move)) { assert(pos.capture_or_promotion(move)); assert(depth >= 5); captureOrPromotion = true; - probCutCount++; ss->currentMove = move; ss->continuationHistory = &thisThread->continuationHistory[ss->inCheck]