mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Spread usage of pos.piece_moved()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -1343,7 +1343,7 @@ split_point_start: // At split points actual search starts from here
|
||||
them = ~pos.side_to_move();
|
||||
ksq = pos.king_square(them);
|
||||
kingAtt = pos.attacks_from<KING>(ksq);
|
||||
pc = pos.piece_on(from);
|
||||
pc = pos.piece_moved(move);
|
||||
|
||||
occ = pos.occupied_squares() & ~(1ULL << from) & ~(1ULL << ksq);
|
||||
oldAtt = pos.attacks_from(pc, from, occ);
|
||||
|
||||
Reference in New Issue
Block a user