diff --git a/src/main.cpp b/src/main.cpp index c5bf3255..bebce2e0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,7 +43,6 @@ int main(int argc, char* argv[]) { Bitbases::init(); Search::init(); Pawns::init(); - Tablebases::init(Options["SyzygyPath"]); // After Bitboards are set Threads.set(Options["Threads"]); Search::clear(); // After threads are up diff --git a/src/search.cpp b/src/search.cpp index d0bbc967..07680f1d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -187,6 +187,7 @@ void Search::clear() { Time.availableNodes = 0; TT.clear(); Threads.clear(); + Tablebases::init(Options["SyzygyPath"]); // Free up mapped files }