]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Fix move_is_capture() to detect capture promotions
[stockfish] / src / movepick.cpp
index 71c9810d6096e9741c7d5fbb836282a364cac6de..1a8f5bf60ea4a9cc50c6ed7e5b666f04d4992277 100644 (file)
@@ -103,7 +103,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h, S
       // Skip TT move if is not a capture or a promotion, this avoids
       // qsearch tree explosion due to a possible perpetual check or
       // similar rare cases when TT table is full.
-      if (ttm != MOVE_NONE && !pos.move_is_capture(ttm) && !move_is_promotion(ttm))
+      if (ttm != MOVE_NONE && !pos.move_is_capture_or_promotion(ttm))
           ttm = MOVE_NONE;
   }
   else