X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=05cd0052ad4cbe03732007fee8e033b4ddbfc853;hp=c2b8924a962a3392e152582e799ff1b90b6a0001;hb=4dded4e72f9b9582db8adc9a478e9eda5841d8c5;hpb=42ed4889876e761b006d0452e6cad9fdb94094f0 diff --git a/src/movepick.cpp b/src/movepick.cpp index c2b8924a..05cd0052 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -75,7 +75,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, int searchTT = ttm; ttMoves[0].move = ttm; badCaptureThreshold = 0; - badCaptures = moves + 256; + badCaptures = moves + MOVES_MAX; pinned = p.pinned_pieces(pos.side_to_move()); @@ -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 { @@ -151,7 +151,7 @@ void MovePicker::go_next_phase() { // Bad captures SEE value is already calculated so just pick // them in order to get SEE move ordering. curMove = badCaptures; - lastMove = moves + 256; + lastMove = moves + MOVES_MAX; return; case PH_EVASIONS: