Skip to content

Commit

Permalink
Fixed possibly skipping captures
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicoelhopedro committed Aug 31, 2021
1 parent 0c4784c commit 056c448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MoveOrder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Move MoveOrder::next_move()
}
else if (m_stage == MoveStage::CAPTURES)
{
if (best_move<true>(move))
while (best_move<true>(move))
if (move != m_hash_move)
return move;
++m_stage;
Expand Down

0 comments on commit 056c448

Please sign in to comment.