X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=a312dec4affa2a8fee6df1d82b84a3b8ecc8c1c2;hb=595c7d75a2d8c6bc6beade1aa0c50fcf79083661;hp=ed9b8edcc6ff0ac7c20e8ce951060b0be0c83ab9;hpb=20c2a314642b8fb911a8e00895544581d4ee2dda;p=stockfish diff --git a/src/position.h b/src/position.h index ed9b8edc..a312dec4 100644 --- a/src/position.h +++ b/src/position.h @@ -91,6 +91,7 @@ struct StateInfo { int castleRights, rule50; Square epSquare; Value mgValue, egValue; + Value npMaterial[2]; PieceType capture; Bitboard checkersBB; @@ -353,7 +354,6 @@ private: Color sideToMove; int gamePly; Key history[MaxGameLength]; - Value npMaterial[2]; File initialKFile, initialKRFile, initialQRFile; StateInfo startState; StateInfo* st; @@ -651,7 +651,7 @@ inline Value Position::eg_value() const { } inline Value Position::non_pawn_material(Color c) const { - return npMaterial[c]; + return st->npMaterial[c]; } inline Phase Position::game_phase() const {