projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
46ce245
)
Partial revert of "Assorted trivial cleanups 5/2019".
author
syzygy1
<3028851+syzygy1@users.noreply.github.com>
Tue, 18 Jun 2019 21:27:34 +0000 (23:27 +0200)
committer
Stephane Nicolet
<cassio@free.fr>
Thu, 20 Jun 2019 14:09:40 +0000 (16:09 +0200)
Since root_probe() and root_probe_wdl() do not reset all tbRank values if they fail,
it is necessary to do this in rank_root_move(). This fixes issue #2196.
Alternatively, the loop could be moved into both root_probe() and root_probe_wdl().
No functional change
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
d954389
..
047a089
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-1713,4
+1713,10
@@
void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) {
if (dtz_available || rootMoves[0].tbScore <= VALUE_DRAW)
Cardinality = 0;
}
+ else
+ {
+ // Clean up if root_probe() and root_probe_wdl() have failed
+ for (auto& m : rootMoves)
+ m.tbRank = 0;
+ }
}