]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Teach 'bench' to run current position
[stockfish] / src / uci.cpp
index 126cd5c4c1e8a027e40a29573b3794495b4695af..96aae854311245558d678b163ce25107ccce6aa9 100644 (file)
@@ -59,6 +59,8 @@ void uci_loop(const string& args) {
   Position pos(StartFEN, false, Threads.main_thread()); // The root position
   string cmd, token;
 
   Position pos(StartFEN, false, Threads.main_thread()); // The root position
   string cmd, token;
 
+  Search::RootPosition = pos;
+
   while (token != "quit")
   {
       if (!args.empty())
   while (token != "quit")
   {
       if (!args.empty())