Spread usage of pos.piece_moved()

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-02-13 09:17:56 +01:00
parent 4aadd1e401
commit 50edb7cd73
5 changed files with 11 additions and 19 deletions
+1 -1
View File
@@ -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);