]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Revert thread_local stuff
[stockfish] / src / uci.cpp
index 4c3faf05c02c07999017594728c1249213dd4b2d..c6da2fc4851acee54e5b60f140cb054d3066e5f5 100644 (file)
@@ -56,7 +56,7 @@ namespace {
 
 void uci_loop(const string& args) {
 
-  Position pos(StartFEN, false, 0); // The root position
+  Position pos(StartFEN, false, Threads.main_thread()); // The root position
   string cmd, token;
 
   while (token != "quit")
@@ -167,7 +167,7 @@ namespace {
     else
         return;
 
-    pos.from_fen(fen, Options["UCI_Chess960"]);
+    pos.from_fen(fen, Options["UCI_Chess960"], Threads.main_thread());
 
     // Parse move list (if any)
     while (is >> token && (m = move_from_uci(pos, token)) != MOVE_NONE)