X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=fe450a4e9adc2956128e1dd787c319dcc06b9dff;hp=c12f086240721cc9c7157032eb5864ea87103268;hb=c5828c4eba9e4e3f448e8370f24804da719a5120;hpb=d37dfe9ae41de722eccd50aee39fb5eb59811bc2 diff --git a/src/search.cpp b/src/search.cpp index c12f0862..fe450a4e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1641,7 +1641,7 @@ void Tablebases::filter_root_moves(Position& pos, Search::RootMoves& rootMoves) RootInTB = root_probe_wdl(pos, rootMoves, TB::Score); // Only probe during search if winning - if (TB::Score <= VALUE_DRAW) + if (RootInTB && TB::Score <= VALUE_DRAW) Cardinality = 0; }