X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=dd4743703f6ec9fae93f71c9e0c2d40fd17559a2;hp=2e8eb665b9acd04573c9e438d77212f2888ccff6;hb=6a5dc14251451c6b8618f3d567d5eda420012ddf;hpb=7733dadfd7c8781e3bde3cc4e21751fa44ab6ed8 diff --git a/src/movepick.cpp b/src/movepick.cpp index 2e8eb665..dd474370 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -99,7 +99,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, phasePtr = MainSearchPhaseTable; } - else if (d == DEPTH_ZERO) + else if (d >= DEPTH_QS_CHECKS) phasePtr = QsearchWithChecksPhaseTable; else { @@ -313,7 +313,7 @@ Move MovePicker::get_next_move() { // Sort negative scored moves only when we get there if (curMove == lastGoodNonCapture) - insertion_sort(lastGoodNonCapture, lastMove); + insertion_sort(lastGoodNonCapture, lastMove); move = (curMove++)->move; if ( move != ttMoves[0].move