diff --git a/src/search.cpp b/src/search.cpp index e9dfb7172..fab0fd617 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -839,7 +839,8 @@ Value Search::Worker::search( } // Use static evaluation difference to improve quiet move ordering - if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture) + if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture + && (ttData.depth - 2) <= depth) { int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1950, 1416) + 655; thisThread->mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 1124 / 1024;