position: 修正 int set_position() 函数却返回 bool 的问题
This commit is contained in:
parent
d8f055511a
commit
76435e9507
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue