mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Remove pointless tte->static_value() != VALUE_NONE checks
Now in non-check nodes we are guaranteed to always have static value in TT Entry. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
ba1a44f216
commit
28feb2c6b0
@@ -1083,8 +1083,9 @@ namespace {
|
||||
isCheck = pos.is_check();
|
||||
if (!isCheck)
|
||||
{
|
||||
if (tte && tte->static_value() != VALUE_NONE)
|
||||
if (tte)
|
||||
{
|
||||
assert(tte->static_value() != VALUE_NONE);
|
||||
ss->eval = tte->static_value();
|
||||
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
|
||||
}
|
||||
@@ -1476,8 +1477,9 @@ namespace {
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tte && tte->static_value() != VALUE_NONE)
|
||||
if (tte)
|
||||
{
|
||||
assert(tte->static_value() != VALUE_NONE);
|
||||
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
|
||||
bestValue = tte->static_value();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user