Skip to content

Commit

Permalink
Fix truncated PVs.
Browse files Browse the repository at this point in the history
No functional change.
  • Loading branch information
joergoster committed Oct 27, 2018
1 parent 7a61368 commit b9c2496
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ namespace {
break;
}
}
// We have a better move though it doesn't raise alpha. At a pv node
// and without a best move we must store this move as pv move.
else if (PvNode && !rootNode && !bestMove)
update_pv(ss->pv, move, (ss+1)->pv);
}

if (move != bestMove)
Expand Down

0 comments on commit b9c2496

Please sign in to comment.