]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Fix profile-build
[stockfish] / src / uci.cpp
index dbf735af15a018b487a9b0df4574e60534fa89ae..b7f72d9d4c8cb655df23ef9822f40724502e9d7b 100644 (file)
@@ -28,6 +28,7 @@
 #include "move.h"
 #include "position.h"
 #include "search.h"
+#include "thread.h"
 #include "ucioption.h"
 
 using namespace std;
@@ -60,8 +61,10 @@ void uci_loop() {
   string cmd, token;
   bool quit = false;
 
-  while (!quit && getline(cin, cmd))
+  while (!quit)
   {
+      Threads.getline(cmd);
+
       istringstream is(cmd);
 
       is >> skipws >> token;
@@ -91,7 +94,7 @@ void uci_loop() {
           pos.print();
 
       else if (token == "flip")
-          pos.flip();
+          pos.flip_me();
 
       else if (token == "eval")
       {