mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Retire Position::color_of_piece_on()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -265,7 +265,7 @@ MoveStack* generate<MV_EVASION>(const Position& pos, MoveStack* mlist) {
|
||||
checkersCnt++;
|
||||
checksq = pop_1st_bit(&b);
|
||||
|
||||
assert(pos.color_of_piece_on(checksq) == opposite_color(us));
|
||||
assert(color_of_piece(pos.piece_on(checksq)) == opposite_color(us));
|
||||
|
||||
switch (type_of_piece(pos.piece_on(checksq)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user