]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Use a per-thread array for generated moves
[stockfish] / src / benchmark.cpp
index 25dab6cc7d7bd8b026b57633e6b31364b76bbb9b..a0dab27bbbf85479254a530549fa48793fc4185a 100644 (file)
@@ -116,9 +116,9 @@ void benchmark(const Position& current, istream& is) {
   Search::StateStackPtr st;
   Time::point elapsed = Time::now();
 
-  for (size_t i = 0; i < fens.size(); i++)
+  for (size_t i = 0; i < fens.size(); ++i)
   {
-      Position pos(fens[i], Options["UCI_Chess960"], Threads.main_thread());
+      Position pos(fens[i], Options["UCI_Chess960"], Threads.main());
 
       cerr << "\nPosition: " << i + 1 << '/' << fens.size() << endl;