]> git.sesse.net Git - stockfish/blobdiff - src/tt.cpp
Save threadID info in Position
[stockfish] / src / tt.cpp
index cded402bdf7ce9782d18552ce10856f772c3d916..16331b8762ae04c60689a341f46af7c3ad49e9c9 100644 (file)
@@ -205,7 +205,7 @@ void TranspositionTable::new_search() {
 void TranspositionTable::insert_pv(const Position& pos, Move pv[]) {
 
   StateInfo st;
-  Position p(pos);
+  Position p(pos, pos.thread());
 
   for (int i = 0; pv[i] != MOVE_NONE; i++)
   {
@@ -227,7 +227,7 @@ void TranspositionTable::extract_pv(const Position& pos, Move pv[], const int PL
 
   const TTEntry* tte;
   StateInfo st;
-  Position p(pos);
+  Position p(pos, pos.thread());
   int ply = 0;
 
   // Update position to the end of current PV