]> git.sesse.net Git - stockfish/blobdiff - src/tt.cpp
Introduce StateInfo instead of UndoInfo
[stockfish] / src / tt.cpp
index a8f871465bb46224ddfbe220001ab0e53bf5b6c7..8911e171eea429cabcb6be99ce202ef09a768bd5 100644 (file)
@@ -177,13 +177,13 @@ void TranspositionTable::new_search() {
 
 void TranspositionTable::insert_pv(const Position &pos, Move pv[]) {
 
-  UndoInfo u;
+  StateInfo st;
   Position p(pos);
 
   for (int i = 0; pv[i] != MOVE_NONE; i++)
   {
     store(p, VALUE_NONE, Depth(0), pv[i], VALUE_TYPE_NONE);
-    p.do_move(pv[i], u);
+    p.do_move(pv[i], st);
   }
 }