Remove redundant check
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 26 Dec 2018 18:22:29 +0000 (19:22 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 26 Dec 2018 18:22:29 +0000 (19:22 +0100)
No functional change.

src/evaluate.cpp

index d817eb3..454b3ce 100644 (file)
@@ -450,7 +450,7 @@ namespace {
 
     Score score = SCORE_ZERO;
 
-    if (pos.piece_drops() && pos.count_in_hand(Us, pt))
+    if (pos.count_in_hand(Us, pt))
     {
         Bitboard b = pos.drop_region(Us, pt) & ~pos.pieces() & (~attackedBy2[Them] | attackedBy[Us][ALL_PIECES]);
         if (b & kingRing[Them])