X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fnotation.cpp;h=85b0abdd2914e6c268da8408cc888de0828f3b5b;hb=3b49aeb4f22569c2b5d5ca830858c4dd584fae7f;hp=15661eec725ab7c7b788f51cc825cb9e201a57f1;hpb=423c6d8a8a36fcc56d421caf0bbc12f53ba62c30;p=stockfish diff --git a/src/notation.cpp b/src/notation.cpp index 15661eec..85b0abdd 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -108,7 +108,7 @@ const string move_to_san(Position& pos, Move m) { if (m == MOVE_NULL) return "(null)"; - assert(pos.move_is_legal(m)); + assert(MoveList(pos).contains(m)); Bitboard attackers; bool ambiguousMove, ambiguousFile, ambiguousRank;