X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=b30b1ffe4be16870be978dac20900351c3eace1b;hp=406dca5aa82b5da3b91014f7860a093df8c91389;hb=8094b2add88cd681f3cdc7896990633b54c6ff48;hpb=ffb638995d21077f5a7632b6d57e4edc7637611b diff --git a/src/position.h b/src/position.h index 406dca5a..b30b1ffe 100644 --- a/src/position.h +++ b/src/position.h @@ -268,7 +268,7 @@ private: Key compute_material_key() const; // Computing incremental evaluation scores and material counts - static Score pst(Color c, PieceType pt, Square s); + static Score pst(Piece p, Square s); Score compute_value() const; Value compute_non_pawn_material(Color c) const; @@ -447,8 +447,8 @@ inline Key Position::get_material_key() const { return st->materialKey; } -inline Score Position::pst(Color c, PieceType pt, Square s) { - return PieceSquareTable[make_piece(c, pt)][s]; +inline Score Position::pst(Piece p, Square s) { + return PieceSquareTable[p][s]; } inline Score Position::pst_delta(Piece piece, Square from, Square to) {