1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +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:
Joost VandeVondele 2016-11-05 16:37:29 +01:00 committed by Marco Costalba
parent 0d669be76c
commit 52cb348023

View file

@ -212,6 +212,7 @@ void Search::clear() {
th->counterMoves.clear();
th->fromTo.clear();
th->counterMoveHistory.clear();
th->resetCalls = true;
}
Threads.main()->previousScore = VALUE_INFINITE;