- if (f == 1 && r > 1)
- san += file_to_char(square_file(from));
- else if (f > 1 && r == 1)
- san += rank_to_char(square_rank(from));
- else if (f > 1 && r > 1)
- san += square_to_string(from);
+ if (cnt > 1)
+ {
+ if (f == 1)
+ san += file_to_char(square_file(from));
+ else if (r == 1)
+ san += rank_to_char(square_rank(from));
+ else
+ san += square_to_string(from);
+ }