mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Reproducible searches after ucinewgame
Fixes issue #859. thisThread->callsCnt in search<>() was different (by 1) for the first and second game played. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
0d669be76c
commit
52cb348023
@@ -212,6 +212,7 @@ void Search::clear() {
|
|||||||
th->counterMoves.clear();
|
th->counterMoves.clear();
|
||||||
th->fromTo.clear();
|
th->fromTo.clear();
|
||||||
th->counterMoveHistory.clear();
|
th->counterMoveHistory.clear();
|
||||||
|
th->resetCalls = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Threads.main()->previousScore = VALUE_INFINITE;
|
Threads.main()->previousScore = VALUE_INFINITE;
|
||||||
|
|||||||
Reference in New Issue
Block a user