X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.cpp;h=7e171f7a6a9bc388d8a7fe4624dd15d9904c9609;hp=fdc6946b7dd9aaf2e53a5e286785c492a0c327eb;hb=b9bc6e823f061753419e563c4f923e60bd8c6193;hpb=5e905800887da94d481978d3bddd9539b2111458 diff --git a/src/move.cpp b/src/move.cpp index fdc6946b..7e171f7a 100644 --- a/src/move.cpp +++ b/src/move.cpp @@ -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;