]> git.sesse.net Git - stockfish/blobdiff - src/psqt.cpp
small cleanups
[stockfish] / src / psqt.cpp
index abd23547af3193df7235512cbda9707f484e887b..27c7a36f9f319175fbdfbe81e3a5b0a33032c2f4 100644 (file)
@@ -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]);