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

View File

@@ -84,7 +84,7 @@ const string move_to_san(Position& pos, Move m) {
bool ambiguousMove, ambiguousFile, ambiguousRank;
Square sq, from = from_sq(m);
Square to = to_sq(m);
PieceType pt = type_of(pos.piece_on(from));
PieceType pt = type_of(pos.piece_moved(m));
string san;
if (is_castle(m))