is_all_surrounded: Fix d = ++d

This commit is contained in:
Calcitem 2020-12-20 11:38:26 +08:00
parent 26984e3ae1
commit 9bf60b935e
1 changed files with 1 additions and 1 deletions

View File

@ -1764,7 +1764,7 @@ bool Position::is_all_surrounded() const
continue;
}
for (MoveDirection d = MD_BEGIN; d < MD_NB; d = ++d) {
for (MoveDirection d = MD_BEGIN; d < MD_NB; ++d) {
moveSquare = static_cast<Square>(MoveList<LEGAL>::moveTable[s][d]);
if (moveSquare && !board[moveSquare]) {
return false;