X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=2923c07fac52ad9ac105bd318f1c059dffde17c8;hp=b38bdd6ed51e2848fd60770c936d7a80793e427c;hb=8662bdfa124ae3ec90d9bf88842d9cfab9a43532;hpb=28240d375c837f2342163e84675bc9230124cd30 diff --git a/src/thread.cpp b/src/thread.cpp index b38bdd6e..2923c07f 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -184,7 +184,8 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, || std::count(limits.searchmoves.begin(), limits.searchmoves.end(), m)) rootMoves.push_back(Search::RootMove(m)); - Tablebases::filter_root_moves(pos, rootMoves); + if (!rootMoves.empty()) + Tablebases::filter_root_moves(pos, rootMoves); // After ownership transfer 'states' becomes empty, so if we stop the search // and call 'go' again without setting a new position states.get() == NULL.