X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c7d8d792fee4bb231a559e506ba501c7410c2177;hp=c740b3c3ec4df3f88c8bd9ffe84f888848fbfb7b;hb=1062459029ff2ae5a717106a8634c8a1ffc15671;hpb=000a975eafc9f509f16ebb75f3dc2c655adf84b1 diff --git a/src/search.cpp b/src/search.cpp index c740b3c3..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); @@ -1370,7 +1370,6 @@ namespace { } isCheck = pos.is_check(); - ei.futilityMargin = Value(0); // Manually initialize futilityMargin // Calculate depth dependant futility pruning parameters const int FutilityMoveCountMargin = 3 + (1 << (3 * int(depth) / 8)); @@ -1672,7 +1671,6 @@ namespace { } isCheck = pos.is_check(); - ei.futilityMargin = Value(0); // Manually initialize futilityMargin // Evaluate the position statically if (isCheck)