X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c692baf5a72e3db774b2e728f25e1c91e93b3b31;hp=4fd1c03d0a8830ba5411e991a13481e3336a61e5;hb=3a558a3d8b1400e0bafe0ba5c368c65542462a36;hpb=68eb7e77f16e96642d90eeec0abe7312631ae2ac diff --git a/src/search.cpp b/src/search.cpp index 4fd1c03d..c692baf5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1440,7 +1440,7 @@ namespace { // Loop through all legal moves until no moves remain or a beta cutoff occurs // Initialize a MovePicker object for the current position - MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply]); + MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply], beta); CheckInfo ci(pos); while ( bestValue < beta @@ -2593,7 +2593,7 @@ namespace { DWORD WINAPI init_thread(LPVOID threadID) { TM.idle_loop(*(int*)threadID, NULL); - return NULL; + return 0; } #endif