diff --git a/AUTHORS b/AUTHORS index 59d692bb4..a7afa9f50 100644 --- a/AUTHORS +++ b/AUTHORS @@ -198,6 +198,7 @@ Nour Berakdar (Nonlinear) Ofek Shochat (OfekShochat, ghostway) Ondrej Mosnáček (WOnder93) Ondřej Mišina (AndrovT) +Onur Zungur (zungur) Oskar Werkelin Ahlin Ömer Faruk Tutkun (OmerFarukTutkun) Pablo Vazquez diff --git a/src/position.cpp b/src/position.cpp index e87091783..c9ff87a53 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -270,7 +270,7 @@ Position::set(const string& fenStr, bool isChess960, StateInfo* si) { if (rank != RANK_1 || file != FILE_NB) return PositionSetError("Invalid FEN. Board state encoding ended but cursor not at end."); - if (pieces(PAWN) & (RANK_1 | RANK_8)) + if (pieces(PAWN) & (Rank1BB | Rank8BB)) return PositionSetError("Unsupported position. Pawns on the first or eighth rank."); if (count(WHITE) != 1 || count(BLACK) != 1)