X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=71768fef5bcd294a0d851f98b110cf18bf3c85d8;hp=4a108360a7cee9af7efcf5be646e097de072eae9;hb=1afbe1a1d7b3f72576a88b12a57e629d09f45ba1;hpb=226bd540642a5f091a80e4b01ea4d4c160558a22 diff --git a/src/search.cpp b/src/search.cpp index 4a108360..71768fef 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1482,7 +1482,7 @@ namespace { if (bestValue >= beta) { // Store the score to avoid a future costly evaluation() call - if (!isCheck && !tte && ei.kingDanger[pos.side_to_move()] == 0) + if (!isCheck && !tte) TT.store(pos.get_key(), value_to_tt(bestValue, ply), VALUE_TYPE_LOWER, Depth(-127*OnePly), MOVE_NONE, ss[ply].eval, ei.kingDanger[pos.side_to_move()]); return bestValue;