]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Assorted tweaks from DON
[stockfish] / src / uci.cpp
index 9f9d84cca96a680717bf17c89b091de67b0a04c6..9b7ab033c12ca5ab21fdc7e7d79829401253cbea 100644 (file)
@@ -194,14 +194,13 @@ namespace {
   void go(const Position& pos, istringstream& is) {
 
     Search::LimitsType limits;
-    vector<Move> searchMoves;
     string token;
 
     while (is >> token)
     {
         if (token == "searchmoves")
             while (is >> token)
-                searchMoves.push_back(move_from_uci(pos, token));
+                limits.searchmoves.push_back(move_from_uci(pos, token));
 
         else if (token == "wtime")     is >> limits.time[WHITE];
         else if (token == "btime")     is >> limits.time[BLACK];
@@ -216,6 +215,6 @@ namespace {
         else if (token == "ponder")    limits.ponder = true;
     }
 
-    Threads.start_thinking(pos, limits, searchMoves, SetupStates);
+    Threads.start_thinking(pos, limits, SetupStates);
   }
 }