X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=4481cfc727e436b8888825c94ec4bc99d261b21e;hp=c0f087ff5a95fdb4174110efe86372de56e25ade;hb=0d88b832e38430e0add9c8298458569b23e102a7;hpb=0b9b34655f2522408f036f79b7f1a01c71a6dedd diff --git a/src/search.cpp b/src/search.cpp index c0f087ff..4481cfc7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1435,7 +1435,7 @@ namespace { // Go with internal iterative deepening if we don't have a TT move if (UseIIDAtNonPVNodes && ttMove == MOVE_NONE && depth >= 8*OnePly && - evaluate(pos, ei, threadID) >= beta - IIDMargin) + !isCheck && evaluate(pos, ei, threadID) >= beta - IIDMargin) { search(pos, ss, beta, Min(depth/2, depth-2*OnePly), ply, false, threadID); ttMove = ss[ply].pv[ply]; @@ -2471,7 +2471,6 @@ namespace { assert(!pos.move_is_check(m)); assert(!pos.move_is_capture_or_promotion(m)); assert(!pos.move_is_passed_pawn_push(m)); - assert(d >= OnePly); Square mfrom, mto, tfrom, tto;