]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Let material probing to access per-thread table
[stockfish] / src / search.cpp
index d4a7dabe7fc8bd7c196381cd5bae0087e9d611c1..006834a7513c739df066ccc6fd72728a948fa88c 100644 (file)
@@ -20,7 +20,7 @@
 #include <algorithm>
 #include <cassert>
 #include <cmath>
-#include <cstring>
+#include <cstring>   // For std::memset
 #include <iostream>
 #include <sstream>
 
@@ -193,7 +193,7 @@ template uint64_t Search::perft<true>(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);