Skip to content

Commit f485edd

Browse files
committed
Fix TB initialization for variants
On every `ucinewgame` the TBs were re-initialized to standard chess irrespective of the currently set UCI_Variant value. Fixes official-stockfish#567.
1 parent 905d8a9 commit f485edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void Search::clear() {
353353
Time.availableNodes = 0;
354354
TT.clear();
355355
Threads.clear();
356-
Tablebases::init(CHESS_VARIANT, Options["SyzygyPath"]); // Free mapped files
356+
Tablebases::init(UCI::variant_from_name(Options["UCI_Variant"]), Options["SyzygyPath"]); // Free mapped files
357357
}
358358

359359

0 commit comments

Comments
 (0)