mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Make rootDepth local to search. (#2077)
passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 61869 W: 13668 L: 13626 D: 34575 http://tests.stockfishchess.org/tests/view/5ca660eb0ebc5925cf004f0c No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
4fcd78bd06
commit
44c320a572
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user