]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Reformat trace code
[stockfish] / src / benchmark.cpp
index 07e1341ec354c77c2c973ef318a947012baa5064..f58d82e2cdf3df840906aee516c2ca72d95b89ce 100644 (file)
@@ -143,7 +143,6 @@ void benchmark(const Position& current, istream& is) {
   }
 
   uint64_t nodes = 0;
-  Search::StateStackPtr st;
   TimePoint elapsed = now();
 
   for (size_t i = 0; i < fens.size(); ++i)
@@ -157,6 +156,7 @@ void benchmark(const Position& current, istream& is) {
 
       else
       {
+          Search::StateStackPtr st;
           Threads.start_thinking(pos, limits, st);
           Threads.main()->join();
           nodes += Search::RootPos.nodes_searched();