From: Marco Costalba Date: Mon, 28 Feb 2011 08:00:17 +0000 (+0100) Subject: Remove a FIXME in id_loop() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=af236373cb8d118902a2cd14c741c7e9e6828ba8 Remove a FIXME in id_loop() No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 915e1af2..5a0af8f8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -600,17 +600,17 @@ namespace { Value value, alpha, beta; Move bestMove, easyMove; - // Moves to search are verified and copied - Rml.init(pos, searchMoves); - - // Initialize FIXME move before Rml.init() + // Initialize stuff before a new search + memset(ss, 0, 4 * sizeof(SearchStack)); TT.new_search(); H.clear(); - memset(ss, 0, 4 * sizeof(SearchStack)); *ponderMove = bestMove = easyMove = MOVE_NONE; depth = aspirationDelta = 0; - ss->currentMove = MOVE_NULL; // Hack to skip update_gains() alpha = -VALUE_INFINITE, beta = VALUE_INFINITE; + ss->currentMove = MOVE_NULL; // Hack to skip update_gains() + + // Moves to search are verified and copied + Rml.init(pos, searchMoves); // Handle special case of searching on a mate/stalemate position if (Rml.size() == 0)