Fix CID 338442: Unchecked return value (CHECKED_RETURN)

check_return: Calling check_if_game_is_over without checking return value (as is done elsewhere 4 out of 5 times).
This commit is contained in:
Calcitem 2021-08-14 11:28:05 +08:00
parent c95bb21576
commit 6279ac519d
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 3 additions and 1 deletions

View File

@ -860,7 +860,9 @@ bool Position::remove_piece(Square s, bool updateRecord)
change_side_to_move();
check:
check_if_game_is_over();
if (check_if_game_is_over()) {
return true;
}
return true;
}