X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=9143f6699192ba8ac9899dd6292081e947a67889;hp=bba0cb6593c2944cf0dccf2e20a3f43ca1850fa7;hb=4f55ed14d33cfefd661245e4effd17a275be0082;hpb=fff6b9f0614243a14c7ba6aa8c846d8d4025d3a6 diff --git a/src/search.cpp b/src/search.cpp index bba0cb65..9143f669 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -775,7 +775,10 @@ moves_loop: // When in check and at SpNode search starts from here MovePicker mp(pos, ttMove, depth, History, countermoves, ss); CheckInfo ci(pos); value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc - improving = ss->staticEval >= (ss-2)->staticEval; + improving = ss->staticEval >= (ss-2)->staticEval + || ss->staticEval == VALUE_NONE + ||(ss-2)->staticEval == VALUE_NONE; + singularExtensionNode = !RootNode && !SpNode && depth >= (PvNode ? 6 * ONE_PLY : 8 * ONE_PLY)