X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=8e6fa93876ff1573364f6008b485c45794963293;hp=11cdc132e97621c6e25a422d2818468a1564da94;hb=c5f44ef45bd9929f5e2f1f4c25c5edd11202546e;hpb=7c55b0e880b68c0242d27a0471f8d535f02703f0 diff --git a/src/position.h b/src/position.h index 11cdc132..8e6fa938 100644 --- a/src/position.h +++ b/src/position.h @@ -89,7 +89,7 @@ enum Phase { struct StateInfo { Key key, pawnKey, materialKey; int castleRights, rule50; - Square epSquare; + Square kingSquare[2], epSquare; Value mgValue, egValue; Value npMaterial[2]; @@ -326,7 +326,6 @@ private: int index[64]; // [square] // Other info - Square kingSquare[2]; Color sideToMove; int gamePly; Key history[MaxGameLength]; @@ -423,7 +422,7 @@ inline Square Position::ep_square() const { } inline Square Position::king_square(Color c) const { - return kingSquare[c]; + return st->kingSquare[c]; } inline bool Position::can_castle_kingside(Color side) const {