X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c7d8d792fee4bb231a559e506ba501c7410c2177;hp=ac90531f8c618a44c983cbbc3d4454f71163a97f;hb=1062459029ff2ae5a717106a8634c8a1ffc15671;hpb=b5d38ad1e5cc7ad4c350b3ef4d1db5241bad8b93 diff --git a/src/search.cpp b/src/search.cpp index ac90531f..c7d8d792 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1328,11 +1328,11 @@ namespace { const TTEntry* tte; Move ttMove, move; Depth ext, newDepth; - Value staticValue, nullValue, value, futilityValue, futilityValueScaled; + Value bestValue, staticValue, nullValue, value, futilityValue, futilityValueScaled; bool isCheck, useFutilityPruning, singleEvasion, moveIsCheck, captureOrPromotion, dangerous; bool mateThreat = false; int moveCount = 0; - Value bestValue = -VALUE_INFINITE; + futilityValue = staticValue = bestValue = -VALUE_INFINITE; if (depth < OnePly) return qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);