]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Changes identified in RENAME/REFORMATTING thread (#1861)
[stockfish] / src / position.cpp
index c915a1f9f3cf7e466eb2ed9d754cc75cdd22cbd1..bd5daa6dcb0268be338f753750cdb945ecdc0faf 100644 (file)
@@ -476,7 +476,7 @@ const string Position::fen() const {
   if (can_castle(BLACK_OOO))
       ss << (chess960 ? char('a' + file_of(castling_rook_square(BLACK | QUEEN_SIDE))) : 'q');
 
-  if (!can_castle(WHITE) && !can_castle(BLACK))
+  if (!can_castle(ANY_CASTLING))
       ss << '-';
 
   ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::square(ep_square()) + " ")