Revert "Make rootDepth local to search. (#2077)"

This reverts commit 44c320a572.

Fix a compile error.

Bench: 3824325
This commit is contained in:
Marco Costalba
2019-05-15 10:50:27 +02:00
parent 4a7b8180ec
commit 02708a4a11
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, rootDepth = DEPTH_ZERO;
Depth lastBestMoveDepth = DEPTH_ZERO;
MainThread* mainThread = (this == Threads.main() ? Threads.main() : nullptr);
double timeReduction = 1, totBestMoveChanges = 0;
Color us = rootPos.side_to_move();