Changes identified in RENAME/REFORMATTING thread (#1861)
[stockfish] / src / movegen.cpp
index 833cd2fc88ec74d94ae19599408715621773baa6..b4a9d27ba1d7459fcc959ba30fc4fe88a84a6a1b 100644 (file)
@@ -278,7 +278,7 @@ namespace {
             *moveList++ = make_move(ksq, pop_lsb(&b));
     }
 
-    if (Type != CAPTURES && Type != EVASIONS && pos.can_castle(Us))
+    if (Type != CAPTURES && Type != EVASIONS && pos.castling_rights(Us))
     {
         if (pos.is_chess960())
         {