mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Don't double check for move legality
In case of a RootNode or a SpNode move has been already checked for legality so we can skip a redundant check. Spotted by Frank Genot. No functional change.
This commit is contained in:
parent
5af8179647
commit
4502917665
1 changed files with 1 additions and 1 deletions
|
@ -893,7 +893,7 @@ split_point_start: // At split points actual search starts from here
|
|||
}
|
||||
|
||||
// Check for legality only before to do the move
|
||||
if (!pos.pl_move_is_legal(move, ci.pinned))
|
||||
if (!RootNode && !SpNode && !pos.pl_move_is_legal(move, ci.pinned))
|
||||
{
|
||||
moveCount--;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue