X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b31157e4406c3755f6789da25df8fd13c556e215;hp=0e9674a05cc6bad59c7f4089edf8ac3f73301dab;hb=44c320a572188b5875291103edb344c584b91d19;hpb=4fcd78bd06d3c1936f6fac9b26fe6d8c57c7747e diff --git a/src/search.cpp b/src/search.cpp index 0e9674a0..b31157e4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -283,7 +283,7 @@ void Thread::search() { Move pv[MAX_PLY+1]; Value bestValue, alpha, beta, delta; Move lastBestMove = MOVE_NONE; - Depth lastBestMoveDepth = DEPTH_ZERO; + Depth lastBestMoveDepth = DEPTH_ZERO, rootDepth = DEPTH_ZERO; MainThread* mainThread = (this == Threads.main() ? Threads.main() : nullptr); double timeReduction = 1, totBestMoveChanges = 0; Color us = rootPos.side_to_move();