X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;fp=src%2Fsan.cpp;h=1eb59c32fb17bca173466a764d7e090710ab6ed5;hp=d8e7da15a7f8b7b83931956f7a8d9beb6d432f13;hb=57b3ca916fdf12ad4ad3dfdcd215379e908b12be;hpb=12f4bbc8f2b6122d9dc0949f3483e7dd3f26a829 diff --git a/src/san.cpp b/src/san.cpp index d8e7da15..1eb59c32 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -149,7 +149,7 @@ Move move_from_san(const Position& pos, const string& movestr) { int matches, state = START; // Generate all legal moves for the given position - last = generate_moves(pos, mlist); + last = generate(pos, mlist); // Castling moves if (movestr == "O-O-O" || movestr == "O-O-O+") @@ -377,7 +377,7 @@ namespace { return AMBIGUITY_NONE; // Collect all legal moves of piece 'pc' with destination 'to' - last = generate_moves(pos, mlist); + last = generate(pos, mlist); for (MoveStack* cur = mlist; cur != last; cur++) if (move_to(cur->move) == to && pos.piece_on(move_from(cur->move)) == pc) candidates[matches++] = cur->move;