]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Speed up by almost 3%
[stockfish] / src / position.cpp
index 7b345fd9c9c731515a46490fe1768d3687f134b6..6b05c24b2a434d3ef1f41b454af877883dc0b765 100644 (file)
@@ -821,7 +821,7 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI
           k ^= Zobrist::enpassant[file_of(st->epSquare)];
       }
 
           k ^= Zobrist::enpassant[file_of(st->epSquare)];
       }
 
-      if (type_of(m) == PROMOTION)
+      else if (type_of(m) == PROMOTION)
       {
           PieceType promotion = promotion_type(m);
 
       {
           PieceType promotion = promotion_type(m);