]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
(Re)introduce DEPTH_ZERO to replace Depth(0)
[stockfish] / src / movepick.cpp
index e3cc1880ce55cd5902b5c86e9f38ad8f3fc77ab0..ad5a8cc8c2e80637c3aed47020760a5b9db59e38 100644 (file)
@@ -90,7 +90,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
 
   if (p.is_check())
       phasePtr = EvasionsPhaseTable;
-  else if (d > Depth(0))
+  else if (d > DEPTH_ZERO)
   {
       // Consider sligtly negative captures as good if at low
       // depth and far from beta.
@@ -99,7 +99,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
 
       phasePtr = MainSearchPhaseTable;
   }
-  else if (d == Depth(0))
+  else if (d == DEPTH_ZERO)
       phasePtr = QsearchWithChecksPhaseTable;
   else
   {