]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Use st->gamePly to store fullMoves
[stockfish] / src / uci.cpp
index fb24bb264c9235cc0f4742afcf52763906ac71f3..b17cf08920c0a10eddf5c1d1b5d1818c2bb34861 100644 (file)
@@ -144,13 +144,13 @@ namespace {
     }
     else return;
 
-    // Parse move list (if any)
     SetupState.clear();
 
+    // Parse move list (if any)
     while (up >> token && (m = move_from_uci(pos, token)) != MOVE_NONE)
     {
         SetupState.push_back(StateInfo());
-        pos.do_setup_move(m, SetupState.back());
+        pos.do_move(m, SetupState.back());
     }
   }