]> git.sesse.net Git - stockfish/blobdiff - src/tt.cpp
Introduce DEPTH_NONE and use it
[stockfish] / src / tt.cpp
index d2f983c9f014cba76d250092a8f0e9f06c60dc04..1dc97f5d71cb9d6e05ae3aabe6887a6ce4ebc617 100644 (file)
@@ -175,7 +175,7 @@ void TranspositionTable::insert_pv(const Position& pos, Move pv[]) {
       if (!tte || tte->move() != pv[i])
       {
           v = (p.is_check() ? VALUE_NONE : evaluate(p, ei));
-          store(p.get_key(), VALUE_NONE, VALUE_TYPE_NONE, Depth(-127*OnePly), pv[i], v, ei.kingDanger[pos.side_to_move()]);
+          store(p.get_key(), VALUE_NONE, VALUE_TYPE_NONE, DEPTH_NONE, pv[i], v, ei.kingDanger[pos.side_to_move()]);
       }
       p.do_move(pv[i], st);
   }