X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=16331b8762ae04c60689a341f46af7c3ad49e9c9;hp=cded402bdf7ce9782d18552ce10856f772c3d916;hb=2f6927ac08887ff3b709cfe9228b27a85bdd1d88;hpb=226bd540642a5f091a80e4b01ea4d4c160558a22 diff --git a/src/tt.cpp b/src/tt.cpp index cded402b..16331b87 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -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