mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Remove xxx_of_color() for real
Remove also from assert expressions. Was hidden in release mode. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -216,7 +216,7 @@ PawnInfo *PawnInfoTable::get_pawn_info(const Position &pos) {
|
||||
File f = square_file(s);
|
||||
Rank r = square_rank(s);
|
||||
|
||||
assert(pos.piece_on(s) == pawn_of_color(us));
|
||||
assert(pos.piece_on(s) == piece_of_color_and_type(us, PAWN));
|
||||
|
||||
// The file containing the pawn is not half open
|
||||
pi->halfOpenFiles[us] &= ~(1 << f);
|
||||
|
||||
Reference in New Issue
Block a user