]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Ensure that rootDepth < DEPTH_MAX
[stockfish] / src / uci.cpp
index 4e56542ab0fc7b14b60bfec328aeadadda54ce87..044aca3abacf967d72177c8d3bd18498c4b29cca 100644 (file)
@@ -112,6 +112,8 @@ namespace {
     Search::LimitsType limits;
     string token;
 
+    limits.startTime = now(); // As early as possible!
+
     while (is >> token)
         if (token == "searchmoves")
             while (is >> token)
@@ -180,7 +182,7 @@ void UCI::loop(int argc, char* argv[]) {
 
       else if (token == "ucinewgame")
       {
-          Search::reset();
+          Search::clear();
           Time.availableNodes = 0;
       }
       else if (token == "isready")    sync_cout << "readyok" << sync_endl;