DroidFish: Fixed problem in stockfish engine that could cause TBs not to

be used if some 6-men TBs are available, the root position contains 6
men, but the root position is not in the TBs.
This commit is contained in:
Peter Osterlund
2016-03-04 20:20:27 +01:00
parent d673eea800
commit 1e91a70537

View File

@@ -271,7 +271,7 @@ void MainThread::search() {
TB::RootInTB = Tablebases::root_probe_wdl(rootPos, rootMoves, TB::Score);
// Only probe during search if winning
if (TB::Score <= VALUE_DRAW)
if (TB::RootInTB && TB::Score <= VALUE_DRAW)
TB::Cardinality = 0;
}