X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpsqt.cpp;fp=src%2Fpsqt.cpp;h=27c7a36f9f319175fbdfbe81e3a5b0a33032c2f4;hp=abd23547af3193df7235512cbda9707f484e887b;hb=6f15e7fab277c2595633ad08fdc25bdd7e0ab166;hpb=bc3c215490edf24cef0ff87d74ab01eeb91ae1bc diff --git a/src/psqt.cpp b/src/psqt.cpp index abd23547..27c7a36f 100644 --- a/src/psqt.cpp +++ b/src/psqt.cpp @@ -106,7 +106,7 @@ Score psq[PIECE_NB][SQUARE_NB]; // tables are initialized by flipping and changing the sign of the white scores. void init() { - for (Piece pc = W_PAWN; pc <= W_KING; ++pc) + for (Piece pc : {W_PAWN, W_KNIGHT, W_BISHOP, W_ROOK, W_QUEEN, W_KING}) { Score score = make_score(PieceValue[MG][pc], PieceValue[EG][pc]);