Skip to content

Commit

Permalink
Take 3: bugfixed version
Browse files Browse the repository at this point in the history
bench: 3843591
  • Loading branch information
pb00068 committed Sep 11, 2019
1 parent 467d1f8 commit 74fea4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/movepick.cpp
Expand Up @@ -215,7 +215,7 @@ Move MovePicker::next_move(bool skipQuiets) {
if ( select<Next>([&](){return *cur != refutations[0].move
&& *cur != refutations[1].move
&& *cur != refutations[2].move;}))
if (!skipQuiets || ((pos.get_stateInfo()->checkSquares[type_of(pos.piece_on(from_sq(cur->move)))] & to_sq(cur->move))))
if (!skipQuiets || ((pos.get_stateInfo()->checkSquares[type_of(pos.piece_on(from_sq((cur-1)->move)))] & to_sq((cur-1)->move))))
return *(cur - 1);

// Prepare the pointers to loop over the bad captures
Expand Down

0 comments on commit 74fea4e

Please sign in to comment.