mirror of
https://github.com/sockspls/badfish
synced 2025-07-13 04:29:15 +00:00
In non-PV IID don't call evaluate when in check
Was a long standing hidden bug from Glaurung times, triggered only now that we enable IID at non PV nodes. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
14c3da5cad
commit
0d88b832e3
1 changed files with 1 additions and 1 deletions
|
@ -1435,7 +1435,7 @@ namespace {
|
||||||
|
|
||||||
// Go with internal iterative deepening if we don't have a TT move
|
// Go with internal iterative deepening if we don't have a TT move
|
||||||
if (UseIIDAtNonPVNodes && ttMove == MOVE_NONE && depth >= 8*OnePly &&
|
if (UseIIDAtNonPVNodes && ttMove == MOVE_NONE && depth >= 8*OnePly &&
|
||||||
evaluate(pos, ei, threadID) >= beta - IIDMargin)
|
!isCheck && evaluate(pos, ei, threadID) >= beta - IIDMargin)
|
||||||
{
|
{
|
||||||
search(pos, ss, beta, Min(depth/2, depth-2*OnePly), ply, false, threadID);
|
search(pos, ss, beta, Min(depth/2, depth-2*OnePly), ply, false, threadID);
|
||||||
ttMove = ss[ply].pv[ply];
|
ttMove = ss[ply].pv[ply];
|
||||||
|
|
Loading…
Add table
Reference in a new issue