Retire the misdesigned StepAttacks[] array.
[stockfish] / src / syzygy / tbprobe.cpp
index d56ba05a7cd222d14c4cfba9aa35971d0397680c..5d08549e5046f29f2876e6b3439ab0f8e041f794 100644 (file)
@@ -1292,7 +1292,7 @@ void Tablebases::init(const std::string& paths) {
             if (MapA1D1D4[s1] == idx && (idx || s1 == SQ_B1)) // SQ_B1 is mapped to 0
             {
                 for (Square s2 = SQ_A1; s2 <= SQ_H8; ++s2)
-                    if ((StepAttacksBB[KING][s1] | s1) & s2)
+                    if ((PseudoAttacks[KING][s1] | s1) & s2)
                         continue; // Illegal position
 
                     else if (!off_A1H8(s1) && off_A1H8(s2) > 0)