From 1afbe1a1d7b3f72576a88b12a57e629d09f45ba1 Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Sat, 22 May 2010 11:34:35 +0300 Subject: [PATCH] Drop completely illogical ei.kingDanger == 0 requirement Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2