]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Restore std::cout instead of printf()
[stockfish] / src / position.cpp
index bed08ebad00865a1cbe4c67347552ed4872e8196..66890a5f5e2224473d81f4a20d6ab3b8b0937814 100644 (file)
@@ -100,6 +100,8 @@ CheckInfo::CheckInfo(const Position& pos) {
 void Position::copy(const Position& pos, int th) {
 
   memcpy(this, &pos, sizeof(Position));
+  startState = *st;
+  st = &startState;
   threadID = th;
   nodes = 0;