X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=006834a7513c739df066ccc6fd72728a948fa88c;hp=d4a7dabe7fc8bd7c196381cd5bae0087e9d611c1;hb=91cc82aa2566e6b6fa60cf82298250d6e4e2dd46;hpb=b8fd1a78dc69f9baba2d8b0079e2d7844fe62958 diff --git a/src/search.cpp b/src/search.cpp index d4a7dabe..006834a7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include // For std::memset #include #include @@ -193,7 +193,7 @@ template uint64_t Search::perft(Position& pos, Depth depth); void Search::think() { - TimeMgr.init(Limits, RootPos.game_ply(), RootPos.side_to_move()); + TimeMgr.init(Limits, RootPos.side_to_move(), RootPos.game_ply()); int contempt = Options["Contempt"] * PawnValueEg / 100; // From centipawns DrawValue[ RootPos.side_to_move()] = VALUE_DRAW - Value(contempt);