mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Retire Position::color_of_piece_on()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -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