From: Marco Costalba Date: Sun, 23 Jan 2011 07:59:16 +0000 (+0100) Subject: Pass TT move instead of Rml[0].pv[0] to MovePicker X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=5194b2bb06bbd0d29975bb35eda4d600e6bd8dcf Pass TT move instead of Rml[0].pv[0] to MovePicker This is used for secondary scoring so it does not changes the fact that Rml[0].pv[0] is always tried as first anyhow. It happens this is even a no functional change patch becuase we reinsert PV in TT after a search so that TT move is actually Rml[0].pv[0]. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index a3238a33..e98ea81d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -329,8 +329,8 @@ namespace { // before to search them. template<> struct MovePickerExt : public MovePicker { - MovePickerExt(const Position& p, Move, Depth d, const History& h, SearchStack* ss, Value b) - : MovePicker(p, Rml[0].pv[0], d, h, ss, b), firstCall(true) { + MovePickerExt(const Position& p, Move ttm, Depth d, const History& h, SearchStack* ss, Value b) + : MovePicker(p, ttm, d, h, ss, b), firstCall(true) { Move move; Value score = VALUE_ZERO;