mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Fix incorrect 'ss' pointer in early stop check
The exclusion search used to verify one move is much better than other shall be called with 'ss' and not 'ss+1' No functional change.
This commit is contained in:
parent
bc02cc0c8a
commit
902c0566a6
1 changed files with 5 additions and 5 deletions
|
@ -455,11 +455,11 @@ namespace {
|
|||
|| Time::now() - SearchTime > (TimeMgr.available_time() * 20) / 100))
|
||||
{
|
||||
Value rBeta = bestValue - 2 * PawnValueMg;
|
||||
(ss+1)->excludedMove = RootMoves[0].pv[0];
|
||||
(ss+1)->skipNullMove = true;
|
||||
Value v = search<NonPV>(pos, ss+1, rBeta - 1, rBeta, (depth - 3) * ONE_PLY);
|
||||
(ss+1)->skipNullMove = false;
|
||||
(ss+1)->excludedMove = MOVE_NONE;
|
||||
ss->excludedMove = RootMoves[0].pv[0];
|
||||
ss->skipNullMove = true;
|
||||
Value v = search<NonPV>(pos, ss, rBeta - 1, rBeta, (depth - 3) * ONE_PLY);
|
||||
ss->skipNullMove = false;
|
||||
ss->excludedMove = MOVE_NONE;
|
||||
|
||||
if (v < rBeta)
|
||||
stop = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue