Skip to content

Commit

Permalink
Reproducible searches after ucinewgame
Browse files Browse the repository at this point in the history
Fixes issue #859.

thisThread->callsCnt in search<>() was different (by 1) for the first and second game played.

No functional change.
  • Loading branch information
vondele authored and mcostalba committed Nov 5, 2016
1 parent 0d669be commit 52cb348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.cpp
Expand Up @@ -212,6 +212,7 @@ void Search::clear() {
th->counterMoves.clear();
th->fromTo.clear();
th->counterMoveHistory.clear();
th->resetCalls = true;
}

Threads.main()->previousScore = VALUE_INFINITE;
Expand Down

0 comments on commit 52cb348

Please sign in to comment.