]> git.sesse.net Git - stockfish/commitdiff
Unify MovePicker c'tor call
authorMarco Costalba <mcostalba@gmail.com>
Sat, 25 Dec 2010 17:03:43 +0000 (18:03 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 25 Dec 2010 17:03:43 +0000 (18:03 +0100)
And use the standard one.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index e853b6ee73e2518490c590283ef10b926efea42c..8dc695d0e83faec353c58b129577f20733f52fde 100644 (file)
@@ -1542,7 +1542,7 @@ split_point_start: // At split points actual search starts from here
     // to search the moves. Because the depth is <= 0 here, only captures,
     // queen promotions and checks (only if depth >= DEPTH_QS_CHECKS) will
     // be generated.
-    MovePicker mp = MovePicker(pos, ttMove, depth, H);
+    MovePicker mp(pos, ttMove, depth, H);
     CheckInfo ci(pos);
 
     // Loop through the moves until no moves remain or a beta cutoff occurs
@@ -2711,7 +2711,7 @@ split_point_start: // At split points actual search starts from here
   {
       Move move;
       int score = 1000;
-      MovePicker mp = MovePicker(pos, MOVE_NONE, ONE_PLY, H);
+      MovePicker mp(pos, MOVE_NONE, ONE_PLY, H);
 
       while ((move = mp.get_next_move()) != MOVE_NONE)
           for (int i = 0; i < count; i++)