]> git.sesse.net Git - stockfish/blobdiff - src/move.cpp
Change pos.pieces() argument order
[stockfish] / src / move.cpp
index fdc6946b7dd9aaf2e53a5e286785c492a0c327eb..7e171f7a6a9bc388d8a7fe4624dd15d9904c9609 100644 (file)
@@ -97,7 +97,7 @@ const string move_to_san(Position& pos, Move m) {
 
           // Disambiguation if we have more then one piece with destination 'to'
           // note that for pawns is not needed because starting file is explicit.
-          attackers = pos.attackers_to(to) & pos.pieces(pt, pos.side_to_move());
+          attackers = pos.attackers_to(to) & pos.pieces(pos.side_to_move(), pt);
           attackers ^= from;
           ambiguousMove = ambiguousFile = ambiguousRank = false;