projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d669be
)
Reproducible searches after ucinewgame
author
Joost VandeVondele
<Joost.VandeVondele@gmail.com>
Sat, 5 Nov 2016 15:37:29 +0000
(16:37 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 5 Nov 2016 21:25:55 +0000
(22:25 +0100)
Fixes issue #859.
thisThread->callsCnt in search<>() was different (by 1) for the first and second game played.
No functional change.
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
0ed6b19
..
1279fe9
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-212,6
+212,7
@@
void Search::clear() {
th->counterMoves.clear();
th->fromTo.clear();
th->counterMoveHistory.clear();
+ th->resetCalls = true;
}
Threads.main()->previousScore = VALUE_INFINITE;