mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08: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->fromTo.clear();
|
||||
th->counterMoveHistory.clear();
|
||||
th->resetCalls = true;
|
||||
}
|
||||
|
||||
Threads.main()->previousScore = VALUE_INFINITE;
|
||||
|
||||
Reference in New Issue
Block a user