X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=2e8eb665b9acd04573c9e438d77212f2888ccff6;hp=c2b8924a962a3392e152582e799ff1b90b6a0001;hb=7733dadfd7c8781e3bde3cc4e21751fa44ab6ed8;hpb=9ca4359f3691305fc5e3306c3084c83557ce09c0 diff --git a/src/movepick.cpp b/src/movepick.cpp index c2b8924a..2e8eb665 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()); @@ -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: