From 0a73a23dc9cdd32ebd47436fd3595279d3990209 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 25 Dec 2010 18:03:43 +0100 Subject: [PATCH] Unify MovePicker c'tor call And use the standard one. No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index e853b6ee..8dc695d0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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++) -- 2.39.2