]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Reorder evaluation start
[stockfish] / src / uci.cpp
index a9811a9af7352ae74308979a4751721b6bfcc042..b195b871346cdd4b03a331a685a19d5294cf3969 100644 (file)
@@ -75,7 +75,7 @@ namespace {
     while (is >> token && (m = UCI::to_move(pos, token)) != MOVE_NONE)
     {
         States->push_back(StateInfo());
-        pos.do_move(m, States->back(), pos.gives_check(m, CheckInfo(pos)));
+        pos.do_move(m, States->back(), pos.gives_check(m));
     }
   }
 
@@ -108,7 +108,7 @@ namespace {
   // the thinking time and other parameters from the input string, then starts
   // the search.
 
-  void go(const Position& pos, istringstream& is) {
+  void go(Position& pos, istringstream& is) {
 
     Search::LimitsType limits;
     string token;