]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Use a per-thread array for generated moves
[stockfish] / src / thread.cpp
index 7d85db8618ca982059b96466d963e29d3b1b5ba7..c385f05ef2fcc6f291f83283c1ffb04aa7710d26 100644 (file)
@@ -83,10 +83,11 @@ void ThreadBase::wait_for(volatile const bool& b) {
 Thread::Thread() /* : splitPoints() */ { // Value-initialization bug in MSVC
 
   searching = false;
 Thread::Thread() /* : splitPoints() */ { // Value-initialization bug in MSVC
 
   searching = false;
-  maxPly = splitPointsSize = 0;
+  maxPly = splitPointsSize = curPage = 0;
   activeSplitPoint = NULL;
   activePosition = NULL;
   idx = Threads.size();
   activeSplitPoint = NULL;
   activePosition = NULL;
   idx = Threads.size();
+  movePages.resize(MAX_PLY_PLUS_6 * MAX_MOVES);
 }
 
 
 }