mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Retire kingSquare[] array
It is redundant. Use pieceList[c][KING][0] instead. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -89,7 +89,7 @@ enum Phase {
|
||||
struct StateInfo {
|
||||
Key key, pawnKey, materialKey;
|
||||
int castleRights, rule50;
|
||||
Square kingSquare[2], epSquare;
|
||||
Square epSquare;
|
||||
Value mgValue, egValue;
|
||||
Value npMaterial[2];
|
||||
|
||||
@@ -408,7 +408,7 @@ inline Square Position::ep_square() const {
|
||||
}
|
||||
|
||||
inline Square Position::king_square(Color c) const {
|
||||
return st->kingSquare[c];
|
||||
return pieceList[c][KING][0];
|
||||
}
|
||||
|
||||
inline bool Position::can_castle_kingside(Color side) const {
|
||||
|
||||
Reference in New Issue
Block a user