]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Fix another crash triggered by previous patch
[stockfish] / src / position.cpp
index bf8497cf90f79310f2a0f5e6a1c67cecbdd18cc9..66890a5f5e2224473d81f4a20d6ab3b8b0937814 100644 (file)
@@ -100,6 +100,7 @@ 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;