mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Rename EMPTY in NO_PIECE
It is more correct and more in line with enum PieceType No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -364,7 +364,7 @@ inline PieceType Position::type_of_piece_on(Square s) const {
|
||||
}
|
||||
|
||||
inline bool Position::square_is_empty(Square s) const {
|
||||
return piece_on(s) == EMPTY;
|
||||
return piece_on(s) == NO_PIECE;
|
||||
}
|
||||
|
||||
inline bool Position::square_is_occupied(Square s) const {
|
||||
|
||||
Reference in New Issue
Block a user