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:
Joost VandeVondele
2019-05-15 10:35:58 +02:00
committed by Marco Costalba
parent 4fcd78bd06
commit 44c320a572
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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();