position: 修正 int set_position() 函数却返回 bool 的问题

This commit is contained in:
Calcitem 2020-11-08 22:09:50 +08:00
parent d8f055511a
commit 76435e9507
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ int Position::set_position(const struct Rule *newRule)
memset(byTypeBB, 0, sizeof(byTypeBB));
if (pieces_on_board_count() == -1) {
return false;
return -1;
}
pieces_in_hand_count();